集群中所有的nodemanager节点机器总是会报出警告信息
> 警告信息:
2015-07-29 00:44:57,785 WARN org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.LogAggregationService: Remote Root Log Dir [/yarn-logs] already exist, but with incorrect permissions. Expected: [rwxrwxrwt], Found: [rwxr-xr-x]. The cluster may have problems with multiple users.
voidverifyAndCreateRemoteLogDir(Configurationconf){// Checking the existence of the TLDFileSystemremoteFS=null;try{remoteFS=getFileSystem(conf);}catch(IOExceptione){thrownewYarnRuntimeException("Unable to get Remote FileSystem instance",e);}booleanremoteExists=true;try{FsPermissionperms=remoteFS.getFileStatus(this.remoteRootLogDir).getPermission();if(!perms.equals(TLDIR_PERMISSIONS)){LOG.warn("Remote Root Log Dir ["+this.remoteRootLogDir+"] already exist, but with incorrect permissions. "+"Expected: ["+TLDIR_PERMISSIONS+"], Found: ["+perms+"]."+" The cluster may have problems with multiple users.");}}catch(FileNotFoundExceptione){remoteExists=false;}catch(IOExceptione){thrownewYarnRuntimeException("Failed to check permissions for dir ["+this.remoteRootLogDir+"]",e);}if(!remoteExists){LOG.warn("Remote Root Log Dir ["+this.remoteRootLogDir+"] does not exist. Attempting to create it.");try{Pathqualified=this.remoteRootLogDir.makeQualified(remoteFS.getUri(),remoteFS.getWorkingDirectory());remoteFS.mkdirs(qualified,newFsPermission(TLDIR_PERMISSIONS));remoteFS.setPermission(qualified,newFsPermission(TLDIR_PERMISSIONS));}catch(IOExceptione){thrownewYarnRuntimeException("Failed to create remoteLogDir ["+this.remoteRootLogDir+"]",e);}}}