HADOOP-13802. Make generic options help more consistent, and aligned. Contributed by Grant Sohn

(cherry picked from commit 2a65eb121e)
This commit is contained in:
Mingliang Liu 2016-11-08 14:41:58 -08:00
parent 797c7bfab9
commit 38b1ed18ef
1 changed files with 22 additions and 15 deletions

View File

@ -567,21 +567,28 @@ private void parseGeneralOptions(Options opts, String[] args)
* @param out stream to print the usage message to. * @param out stream to print the usage message to.
*/ */
public static void printGenericCommandUsage(PrintStream out) { public static void printGenericCommandUsage(PrintStream out) {
out.println("Generic options supported are:");
out.println("Generic options supported are"); out.println("-conf <configuration file> "
out.println("-conf <configuration file> specify an application configuration file"); + "specify an application configuration file");
out.println("-D <property=value> use value for given property"); out.println("-D <property=value> "
out.println("-fs <local|namenode:port> specify a namenode"); + "define a value for a given property");
out.println("-jt <local|resourcemanager:port> specify a ResourceManager"); out.println("-fs <local|namenode:port> "
out.println("-files <comma separated list of files> " + + "specify a namenode");
"specify comma separated files to be copied to the map reduce cluster"); out.println("-jt <local|resourcemanager:port> "
out.println("-libjars <comma separated list of jars> " + + "specify a ResourceManager");
"specify comma separated jar files to include in the classpath."); out.println("-files <file1,...> "
out.println("-archives <comma separated list of archives> " + + "specify a comma-separated list of files to be copied to the map "
"specify comma separated archives to be unarchived" + + "reduce cluster");
" on the compute machines.\n"); out.println("-libjars <jar1,...> "
out.println("The general command line syntax is"); + "specify a comma-separated list of jar files to be included in the "
out.println("command [genericOptions] [commandOptions]\n"); + "classpath");
out.println("-archives <archive1,...> "
+ "specify a comma-separated list of archives to be unarchived on the "
+ "compute machines");
out.println();
out.println("The general command line syntax is:");
out.println("command [genericOptions] [commandOptions]");
out.println();
} }
} }