0
我StarCluster配置文件看起来像这样:AWS-Starcluster配置无法识别区
####################################
## StarCluster Configuration File ##
####################################
[global]
DEFAULT_TEMPLATE=smallcluster
#############################################
## AWS Credentials and Connection Settings ##
#############################################
[aws info]
AWS_ACCESS_KEY_ID = AKXXXXXXXXXXXXXXXXRQ
AWS_SECRET_ACCESS_KEY = W57kWxzzzdsfasdfasfdsflk981mc4mmsPat7+C3
# replace this with your account number
AWS_USER_ID=006171111111
# Uncomment to specify a different Amazon AWS region (OPTIONAL)
# (defaults to us-east-1 if not specified)
# NOTE: AMIs have to be migrated!
AWS_REGION_NAME = ap-northeast-1
AWS_REGION_HOST = ec2.ap-northeast-1.amazonaws.com
# AWS_REGION_NAME = us-east-1
# AWS_REGION_HOST = ec2.us-east-1.amazonaws.com
###########################
## Defining EC2 Keypairs ##
###########################
# Sections starting with "key" define your keypairs. See "starcluster createkey
# --help" for instructions on how to create a new keypair. Section name should
# match your key name e.g.:
[key mykey]
KEY_LOCATION=~/.ssh/mykey.rsa
################################
## Defining Cluster Templates ##
################################
[cluster smallcluster]
# change this to the name of one of the keypair sections defined above
KEYNAME = mykey
# number of ec2 instances to launch
CLUSTER_SIZE = 2
# create the following user on the cluster
CLUSTER_USER = sgeadmin
# optionally specify shell (defaults to bash)
# (options: tcsh, zsh, csh, bash, ksh)
CLUSTER_SHELL = bash
NODE_IMAGE_ID = ami-3393a45a
NODE_INSTANCE_TYPE = m1.small
我已经开始与集群没有问题:
AWS_REGION_NAME = us-east-1
AWS_REGION_HOST = ec2.us-east-1.amazonaws.com
但是当我把它改成:
AWS_REGION_NAME = ap-northeast-1
AWS_REGION_HOST = ec2.ap-northeast-1.amazonaws.com
我得到这个错误:
$ starcluster start mycluster
StarCluster - (http://star.mit.edu/cluster) (v. 0.95.6)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to [email protected]
>>> Using default cluster template: smallcluster
>>> Validating cluster template settings...
!!! ERROR - Cluster settings are not valid:
!!! ERROR - Keypair 'mykey' does not exist in region 'ap-northeast-1'
什么是正确的做法?
谢谢。我已经在'ap-northeast-1'下生成了'* .pem'我怎么把它放在'config'文件中? – neversaint
错误说'Keypair'mykey'不存在于'ap-northeast-1'区域,因此请进入该区域的Amazon EC2管理控制台,查看** Key Pairs **部分,并检查您是否有一个名为“mykey”的密钥。 –
谢谢。我知道了。顺便说一句,看看这个http://stackoverflow.com/questions/42069678/how-to-run-starcluster-with-aws-iam-role – neversaint