MAPREDUCE-4414. Add main methods to JobConf and YarnConfiguration, for debug purposes. Contributed by Plamen Jeliazkov.
This commit is contained in:
parent
bf3275dbaa
commit
587d8be17b
@ -253,6 +253,9 @@ Release 2.8.0 - UNRELEASED
|
|||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
||||||
|
MAPREDUCE-4414. Add main methods to JobConf and YarnConfiguration,
|
||||||
|
for debug purposes. (Plamen Jeliazkov via harsh)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -2140,5 +2140,10 @@ public int getMemoryRequired(TaskType taskType) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* For debugging. Dump configurations to system output as XML format. */
|
||||||
|
public static void main(String[] args) throws Exception {
|
||||||
|
new JobConf(new Configuration()).writeXml(System.out);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1808,4 +1808,9 @@ public static String getClusterId(Configuration conf) {
|
|||||||
}
|
}
|
||||||
return clusterId;
|
return clusterId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* For debugging. mp configurations to system output as XML format. */
|
||||||
|
public static void main(String[] args) throws Exception {
|
||||||
|
new YarnConfiguration(new Configuration()).writeXml(System.out);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user