Преглед изворни кода

MAPREDUCE-6100. replace mapreduce.job.credentials.binary with MRJobConfig.MAPREDUCE_JOB_CREDENTIALS_BINARY for better readability. Contributed by Zhihai Xu.

Harsh J пре 10 година
родитељ
комит
f222bde273

+ 4 - 0
hadoop-mapreduce-project/CHANGES.txt

@@ -253,6 +253,10 @@ Release 2.8.0 - UNRELEASED
 
 
   IMPROVEMENTS
   IMPROVEMENTS
 
 
+    MAPREDUCE-6100. replace "mapreduce.job.credentials.binary" with
+    MRJobConfig.MAPREDUCE_JOB_CREDENTIALS_BINARY for better readability.
+    (Zhihai Xu via harsh)
+
     MAPREDUCE-6105. Inconsistent configuration in property
     MAPREDUCE-6105. Inconsistent configuration in property
     mapreduce.reduce.shuffle.merge.percent. (Ray Chiang via harsh)
     mapreduce.reduce.shuffle.merge.percent. (Ray Chiang via harsh)
 
 

+ 1 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobSubmitter.java

@@ -383,7 +383,7 @@ class JobSubmitter {
   throws IOException {
   throws IOException {
     // add tokens and secrets coming from a token storage file
     // add tokens and secrets coming from a token storage file
     String binaryTokenFilename =
     String binaryTokenFilename =
-      conf.get("mapreduce.job.credentials.binary");
+      conf.get(MRJobConfig.MAPREDUCE_JOB_CREDENTIALS_BINARY);
     if (binaryTokenFilename != null) {
     if (binaryTokenFilename != null) {
       Credentials binary = Credentials.readTokenStorageFile(
       Credentials binary = Credentials.readTokenStorageFile(
           FileSystem.getLocal(conf).makeQualified(
           FileSystem.getLocal(conf).makeQualified(