1

我使用 spark 1.4 和 spark-ec2 启动了一个按需 spark 集群。然后我登录到集群,发现 aws 客户端是古老的。

aws --version
aws-cli/0.8.2 Python/2.6.9 Linux/3.4.37-40.44.amzn1.x86_64

在我的本地,aws 客户端是

aws --version
aws-cli/1.3.24 Python/2.7.7 Linux/2.6.32-431.el6.x86_64

spark-ec2 安装的 aws 版本太旧了,使用完全不同的语法。我希望能够使用符号:

aws s3 cp src target

但我得到了这个错误:

$ aws s3 cp src tgt
usage: aws s3 operation
aws s3: error: argument operation: invalid choice: 'cp' (choose from u'list-    object-versions', u'put-bucket-policy', u'list-objects', u'put-bucket-website', u'put-bucket-notification', u'put-bucket-logging', u'upload-part', u'put-object', u'delete-bucket-cors', u'put-bucket-versioning', u'get-bucket-cors', u'put-bucket-lifecycle', u'get-bucket-acl', u'get-bucket-logging', u'head-bucket', u'put-bucket-acl', u'delete-bucket-website', u'delete-bucket-policy', u'delete-objects', u'get-object', u'copy-object', u'list-buckets', u'put-bucket-request-payment', u'head-object', u'delete-bucket-tagging', u'get-object-torrent', u'get-bucket-lifecycle', u'create-bucket', u'complete-multipart-upload', u'get-bucket-website', u'create-multipart-upload', u'delete-bucket', u'get-bucket-policy', u'get-bucket-versioning', u'list-multipart-uploads', u'get-bucket-request-payment', u'put-bucket-tagging', u'get-bucket-tagging', u'abort-multipart-upload', u'put-object-acl', u'get-bucket-location', u'put-bucket-cors', u'delete-bucket-lifecycle', u'get-bucket-notification', u'list-parts', u'get-object-acl', u'upload-part-copy', u'delete-object', u'restore-object', 'help')

是否有安装最新版本 AWS CLI 的更新 AMI?

4

0 回答 0