Refine search
protected void printUsage(PrintStream errOut) { errOut.println(getUsageString()); for (Map.Entry<String, UsageInfo> e : USAGE.entrySet()) { String cmd = e.getKey(); UsageInfo usage = e.getValue(); if (usage.args == null) { errOut.println(" [" + cmd + "]"); } else { errOut.println(" [" + cmd + " " + usage.args + "]"); } } errOut.println(); ToolRunner.printGenericCommandUsage(errOut); }
final String val = attrval[1].trim(); if (attr.isEmpty() || val.isEmpty()) { getOut().println("\nAttributes must be in attribute=value form, " + "or quoted\nlike \"attribute = value\"\n"); return 1; getOut().println("\nEach attribute must correspond to only one " + "value:\natttribute \"" + attr + "\" was repeated\n"); return 1; return 1; } else { ToolRunner.printGenericCommandUsage(getErr()); return 1;
out.println(getUsagePrefix()); Command instance = commandFactory.getInstance(name); if (!instance.isDeprecated()) { out.println("\t[" + instance.getUsage() + "]"); instances.add(instance); out.println(); printInstanceHelp(out, instance); out.println(); ToolRunner.printGenericCommandUsage(out);
public int run(String[] args) throws Exception { if (args.length != 0) { System.err.println(format("%s [genericOptions]", NAME)); System.err.println(" Runs ImportTsv integration tests against a distributed cluster."); System.err.println(); ToolRunner.printGenericCommandUsage(System.err); return 1; } // adding more test methods? Don't forget to add them here... or consider doing what // IntegrationTestsDriver does. provisionCluster(); TableName tableName = TableName.valueOf("IntegrationTestImportTsv"); if (util.getAdmin().tableExists(tableName)) { util.deleteTable(tableName); } generateAndLoad(tableName); releaseCluster(); return 0; }
protected static int printUsage () { System.out.println("SaxpyTextoutput <# of reducers> <y_path> <x_path> <a>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("RWRBlock <edge_path> <vector_path> <query_path> <# of nodes> <# of reducers> <max iteration> <block_width> <c>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("NormalizeVector <input vector_path> <output_path> <# of reducers> <additional multiplier>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("ConCmptIVGen <output_path> <# of nodes> <# of machines>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("HadiIVGen <output_path> <# of nodes> <# of reducers> <nreplication> <enc or noenc>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("PagerankNaive <input_path> <output_path> <# of nodes> <# of tasks> <max iteration> <makesym or nosym> <new or contNN>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("MatvecNaive <edge_path> <tempmv_path> <output_path> <# of nodes> <# of reducers> <makesym or nosym>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("PagerankBlock <edge_path> <vector_path> <tempmv_path> <output_path> <# of nodes> <# of reducers> <number of iteration> <block width>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("ScalarMult <in_path> <s>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("hadi <edge_path> <curbm_path> <tempbm_path> <nextbm_path> <output_path> <# of vertices> <# of replication> <# of reducers> <enc or noenc> <newbm or contNN> <makesym or reg> <'max' or maximum_iteration>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("JoinTablePegasus <# of reducers> <OuterJoin or SemiJoin> <output_path> <input_path 1> <input_path 2> ..."); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("PagerankInitVector <output_path> <# of nodes> <# of reducers>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("concmpt <edge_path> <curbm_path> <tempbm_path> <nextbm_path> <output_path> <# of nodes> <# of tasks> <new or contNN> <makesym or nosym>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("L1normBlock <# of reducers> <y_path> <x_path> <a>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("SaxpyBlock <# of reducers> <y_path> <x_path> <a>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }
protected static int printUsage () { System.out.println("Saxpy <# of reducers> <y_path> <x_path> <a>"); ToolRunner.printGenericCommandUsage(System.out); return -1; }