MAPREDUCE-6291. Correct mapred queue usage command. Contributed by Brahma Reddy Battula.

This commit is contained in:
Harsh J 2015-03-28 11:57:21 +05:30
parent 89fb0f57ef
commit 27d49e6714
5 changed files with 7 additions and 4 deletions

View File

@ -256,6 +256,9 @@ Release 2.8.0 - UNRELEASED
IMPROVEMENTS IMPROVEMENTS
MAPREDUCE-6291. Correct mapred queue usage command.
(Brahma Reddu Battula via harsh)
MAPREDUCE-579. Streaming "slowmatch" documentation. (harsh) MAPREDUCE-579. Streaming "slowmatch" documentation. (harsh)
MAPREDUCE-6287. Deprecated methods in org.apache.hadoop.examples.Sort MAPREDUCE-6287. Deprecated methods in org.apache.hadoop.examples.Sort

View File

@ -224,7 +224,7 @@ class JobQueueClient extends Configured implements Tool {
} }
private void displayUsage(String cmd) { private void displayUsage(String cmd) {
String prefix = "Usage: JobQueueClient "; String prefix = "Usage: queue ";
if ("-queueinfo".equals(cmd)) { if ("-queueinfo".equals(cmd)) {
System.err.println(prefix + "[" + cmd + "<job-queue-name> [-showJobs]]"); System.err.println(prefix + "[" + cmd + "<job-queue-name> [-showJobs]]");
} else { } else {

View File

@ -363,7 +363,7 @@ public class Submitter extends Configured implements Tool {
void printUsage() { void printUsage() {
// The CLI package should do this for us, but I can't figure out how // The CLI package should do this for us, but I can't figure out how
// to make it print something reasonable. // to make it print something reasonable.
System.out.println("bin/hadoop pipes"); System.out.println("Usage: pipes ");
System.out.println(" [-input <path>] // Input directory"); System.out.println(" [-input <path>] // Input directory");
System.out.println(" [-output <path>] // Output directory"); System.out.println(" [-output <path>] // Output directory");
System.out.println(" [-jar <jar file> // jar filename"); System.out.println(" [-jar <jar file> // jar filename");

View File

@ -421,7 +421,7 @@ public class CLI extends Configured implements Tool {
* Display usage of the command-line tool and terminate execution. * Display usage of the command-line tool and terminate execution.
*/ */
private void displayUsage(String cmd) { private void displayUsage(String cmd) {
String prefix = "Usage: CLI "; String prefix = "Usage: job ";
String jobPriorityValues = getJobPriorityNames(); String jobPriorityValues = getJobPriorityNames();
String taskStates = "running, completed"; String taskStates = "running, completed";

View File

@ -101,7 +101,7 @@ public class HadoopArchives implements Tool {
/** the desired replication degree; default is 10 **/ /** the desired replication degree; default is 10 **/
short repl = 10; short repl = 10;
private static final String usage = "archive" private static final String usage = "Usage: archive"
+ " -archiveName <NAME>.har -p <parent path> [-r <replication factor>]" + + " -archiveName <NAME>.har -p <parent path> [-r <replication factor>]" +
"<src>* <dest>" + "<src>* <dest>" +
"\n"; "\n";