You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/06/07 11:52:12 UTC

[GitHub] [dolphinscheduler] geosmart edited a comment on issue #5599: [Resource] fs.s3a.endpoint not working when change hdfs to minio

geosmart edited a comment on issue #5599:
URL: https://github.com/apache/dolphinscheduler/issues/5599#issuecomment-855860072


   resolved
   
   hadoop-aws `2.6.0` not support set endpoint outside, it use the default `s3.amazonaws.com` by
   setEndpoint(Constants.S3_HOSTNAME); 
   
   and in `2.7.2`
   ```
           this.s3 = new AmazonS3Client(credentials, awsConf);
           proxyUsername = conf.getTrimmed("fs.s3a.endpoint", "");
           if (!proxyUsername.isEmpty()) {
               try {
                   this.s3.setEndpoint(proxyUsername);
               } catch (IllegalArgumentException var23) {
                   msg = "Incorrect endpoint: " + var23.getMessage();
                   LOG.error(msg);
                   throw new IllegalArgumentException(msg, var23);
               }
           }
   ```
   we can overwrite the endpoint with `fs.s3a.endpoint` config
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org