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