Lisheng Sun created HDFS-14850:

             Summary: Optimize 
                 Key: HDFS-14850
             Project: Hadoop HDFS
          Issue Type: Improvement
         Environment: *strong text*
            Reporter: Lisheng Sun
            Assignee: Lisheng Sun

  public Configuration getFileSystemConfiguration() {
    Configuration conf = new Configuration(true);
    ConfigurationUtils.copy(serviceHadoopConf, conf);
    conf.setBoolean(FILE_SYSTEM_SERVICE_CREATED, true);

    // Force-clear server-side umask to make HttpFS match WebHDFS behavior
    conf.set(FsPermission.UMASK_LABEL, "000");

    return conf;
As above code´╝îwhen call 
FileSystemAccessService#getFileSystemConfiguration,current code  new 
Configuration every time.  
It is not necessary and affects performance. I think it only need to new 
Configuration in FileSystemAccessService#init once and  
FileSystemAccessService#getFileSystemConfiguration get it.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to