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

后端 未结 5 1153
半阙折子戏
半阙折子戏 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:09

    Passing in the AWS Credentials as part of the Amazon s3n url is not normally recommended, security wise. Especially if that code is pushed to a repository holding service (like github). Ideally set your credentials in the conf/core-site.xml as:

    
      
        fs.s3n.awsAccessKeyId
        XXXXXX
      
    
      
        fs.s3n.awsSecretAccessKey
        XXXXXX
      
    
    

    or reinstall awscli on your machine.

    pip install awscli
    

提交回复
热议问题