【发布时间】:2017-07-10 16:53:37
【问题描述】:
我是使用 Amazon Web 服务的新手,我正在尝试在其上构建一个集群来运行我的 mapreduce 作业。 我创建了一个 AWS 账户、一个存储桶“xxxx”和一个密钥对“rania”。我关注了这个帖子https://aws.amazon.com/fr/blogs/big-data/statistical-analysis-with-open-source-r-and-rstudio-on-amazon-emr/ 创建集群。 我在我的 ubunto 控制台中运行了这段代码:
bucket="<xxxx>"
region="<eu-west-1>"
keypair="<rania>"
aws emr create-cluster --name emR-example \
--ami-version 3.2.1 \
--region $eu-west-1 \
--ec2-attributes KeyName=$rania \
--no-auto-terminate \
--instance-groups \
InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m1.large \
InstanceGroupType=CORE,InstanceCount=2,InstanceType=m1.large \
--bootstrap-actions \
Name=emR_bootstrap,\
Path="s3://$xxxx/emR_bootstrap.sh",\
Args=[--rstudio,--rhdfs,--plyrmr,--rexamples] \
--steps \
Name=HDFS_tmp_permission,\
Jar="s3://elasticmapreduce/libs/script-runner/script-runner.jar",\
Args="s3://$xxxx/hdfs_permission.sh"
但出现此错误:
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument --region: expected one argument
【问题讨论】:
标签: r amazon-web-services hadoop amazon-emr