How to specify AWS Access Key ID and Secret Access Key as part of a amazon s3n URL

后端 未结 5 1123
半阙折子戏
半阙折子戏 2020-12-30 22:43

I am passing input and output folders as parameters to mapreduce word count program from webpage.

Getting below error:

HTTP Status 500 - Requ

5条回答
  •  囚心锁ツ
    2020-12-30 23:16

    I suggest you use this:

    hadoop distcp \
    -Dfs.s3n.awsAccessKeyId= \ 
    -Dfs.s3n.awsSecretAccessKey= \
    s3n://origin hdfs://destinations
    

    It also works as a workaround for the occurrence of slashes in the key. The parameters with the id and access key must be supplied exactly in this order: after disctcp and before origin

提交回复
热议问题