Skip to content

Commit 684b38e

Browse files
committed
add comment
1 parent b46f6be commit 684b38e

File tree

1 file changed

+2
-0
lines changed
  • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce

1 file changed

+2
-0
lines changed

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobResourceUploader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ private URI useSharedCache(URI sourceFile, String resourceName,
783783
void copyJar(Path originalJarPath, Path submitJarFile,
784784
short replication) throws IOException {
785785
jtFs.copyFromLocalFile(originalJarPath, submitJarFile);
786+
// The operation of setReplication requires certain permissions
787+
// so we need to make sure it has enough permissions
786788
jtFs.setPermission(submitJarFile, new FsPermission(
787789
JobSubmissionFiles.JOB_FILE_PERMISSION));
788790
jtFs.setReplication(submitJarFile, replication);

0 commit comments

Comments
 (0)