cnauroth commented on code in PR #4237:
URL: https://github.com/apache/hadoop/pull/4237#discussion_r932562817


##########
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobSubmissionFiles.java:
##########
@@ -160,6 +160,7 @@ public static Path getStagingDir(Cluster cluster, 
Configuration conf,
       }
     } catch (FileNotFoundException e) {
       fs.mkdirs(stagingArea, new FsPermission(JOB_DIR_PERMISSION));

Review Comment:
   I suggest using static method `FileSystem.mkdirs(fs, stagingArea, new 
FsPermission(JOB_DIR_PERMISSION))`. It's one less line of code and potentially 
one less remote call for certain `FileSystem` implementations.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to