【问题标题】:Passing hive configuration with aws emr cli使用 aws emr cli 传递 hive 配置
【发布时间】:2016-08-20 11:50:31
【问题描述】:

我正在关注文档:http://docs.aws.amazon.com/ElasticMapReduce/latest/ReleaseGuide/emr-dev-create-metastore-outside.html 并尝试使用 awscli==1.10.38 创建 emr 集群。

我使用文档中提到的以下命令:

aws emr create-cluster --release-label emr-5.0.0 --instance-type m3.xlarge --instance-count 2 \
--applications Name=Hive --configurations ./hiveConfiguration.json --use-default-roles

我也在使用与文档中提到的完全相同的 hiveConfiguration.json。

但它说 "aws: error: invalid json argument for option --configurations"

为什么我会收到错误消息?

【问题讨论】:

    标签: amazon-web-services hive emr aws-cli amazon-emr


    【解决方案1】:

    您对--configurations 的论点不正确。缺少 file:// CLI 需要知道您正在指定文件或 S3 对象。

    aws emr create-cluster --configurations file://hiveConfiguration.json
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-07
      • 2018-09-26
      相关资源
      最近更新 更多