MAPREDUCE-4414. Add main methods to JobConf and YarnConfiguration, for debug purposes. Contributed by Plamen Jeliazkov.
(cherry picked from commit 571f75b468a4412be2178466cb5d3888b05cd076)
This commit is contained in:
parent
eb4eb63de3
commit
2684b0b440
|
@ -8,6 +8,9 @@ Release 2.8.0 - UNRELEASED
|
|||
|
||||
IMPROVEMENTS
|
||||
|
||||
MAPREDUCE-4414. Add main methods to JobConf and YarnConfiguration,
|
||||
for debug purposes. (Plamen Jeliazkov via harsh)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
|
|
@ -2021,5 +2021,10 @@ public class JobConf extends Configuration {
|
|||
}
|
||||
|
||||
|
||||
/* 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 class YarnConfiguration extends Configuration {
|
|||
}
|
||||
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