我試圖使用Cloudera的Quickstart docker容器來測試簡單的Hadoop/Hive作業。我希望能夠在S3中運行數據,但到目前爲止我們遇到了問題。設置AWS Credentials - Cloudera快速入門Docker容器
我已將以下屬性添加到core-site.xml,hive-site.xml,hdfs-site.xml。
<property>
<name>fs.s3.awsAccessKeyId</name>
<value>XXXXXX</value>
</property>
<property>
<name>fs.s3.awsSecretAccessKey</name>
<value>XXXXXX</value>
</property>
無論如何,在蜂房嘗試創建一個外部表指向一個S3的位置的時候,我得到的錯誤:
FAILED: SemanticException java.lang.IllegalArgumentException: AWS Access Key ID and Secret Access Key must be specified as the username or password (respectively) of a s3 URL, or by setting the fs.s3.awsAccessKeyId or fs.s3.awsSecretAccessKey properties (respectively).