Backport of MAPREDUCE-4432 from trunk. Confusing warning message when GenericOptionsParser is not used. Contributed by Gabriel Reid. (harsh)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1361275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Harsh J 2012-07-13 15:23:09 +00:00
parent 7d09bc1880
commit f457ffb05b
2 changed files with 6 additions and 2 deletions

View File

@ -161,6 +161,9 @@ Release 2.0.0-alpha - 05-23-2012
MAPREDUCE-3906. Fix inconsistency in documentation regarding MAPREDUCE-3906. Fix inconsistency in documentation regarding
mapreduce.jobhistory.principal. (Eugene Koontz via harsh) mapreduce.jobhistory.principal. (Eugene Koontz via harsh)
MAPREDUCE-4432. Confusing warning message when GenericOptionsParser
is not used. (Gabriel Reid via harsh)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -135,8 +135,9 @@ class JobSubmitter {
short replication) throws IOException { short replication) throws IOException {
Configuration conf = job.getConfiguration(); Configuration conf = job.getConfiguration();
if (!(conf.getBoolean(Job.USED_GENERIC_PARSER, false))) { if (!(conf.getBoolean(Job.USED_GENERIC_PARSER, false))) {
LOG.warn("Use GenericOptionsParser for parsing the arguments. " + LOG.warn("Hadoop command-line option parsing not performed. " +
"Applications should implement Tool for the same."); "Implement the Tool interface and execute your application " +
"with ToolRunner to remedy this.");
} }
// get all the command line arguments passed in by the user conf // get all the command line arguments passed in by the user conf