0
我試圖用s3位置創建外部表。使用s3位置創建Hive外部表時面臨問題
create external table trial
(
Country string,
Date1 string,
Brand string)
location 's3n://poc/xyzpoc.csv'
)
我已經提到的自定義HDFS現場和自定義蜂巢現場訪問和祕密訪問鍵,但仍然我得到訪問的關鍵錯誤。
下面的屬性我已經設置
fs.s3a.access.key,
fs.s3a.secret.key
錯誤:
Error while compiling statement: FAILED: SemanticException java.lang.IllegalArgumentException: AWS Access Key ID and Secret Access Key must be specified as the username or password (respectively) of a s3n URL, or by setting the fs.s3n.awsAccessKeyId or fs.s3n.awsSecretAccessKey properties (respectively). [ERROR_STATUS]
您是否試圖按照錯誤告訴您需要完成的方式進行操作? 'location's3n:// AKIAEXAMPLEKEY:ExampleSecretzzz @ poc/xyzpoc.csv'' –