Java Code Examples for org.apache.hadoop.util.ProgramDriver#addClass()
The following examples show how to use
org.apache.hadoop.util.ProgramDriver#addClass() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AllTestDriver.java From RDFS with Apache License 2.0 | 6 votes |
/** * A description of the test program for running all the tests using jar file */ public static void main(String argv[]){ ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("gentest", DFSGeneralTest.class, "A map/reduce benchmark that supports running multi-thread operations in multiple machines"); pgd.addClass("locktest", DFSLockTest.class, "A benchmark that spawns many threads and each thread run many configurable read/write FileSystem operations to test FSNamesystem lock's concurrency."); pgd.addClass("dirtest", DFSDirTest.class, "A map/reduce benchmark that creates many jobs and each job spawns many threads and each thread create/delete many dirs."); pgd.addClass("dfstest", DFSIOTest.class, "A map/reduce benchmark that creates many jobs and each jobs can create many files to test i/o rate per task of hadoop cluster."); pgd.addClass("structure-gen", StructureGenerator.class, "Create a structure of files and directories as an input for data-gen"); pgd.addClass("data-gen", DataGenerator.class, "Create files and directories on cluster as inputs for load-gen"); pgd.addClass("load-gen", LoadGenerator.class, "A tool to test the behavior of NameNode with different client loads."); pgd.addClass("testnn", TestNNThroughputBenchmark.class, "Test the behavior of the namenode on localhost." + " Here namenode is real and others are simulated"); pgd.driver(argv); } catch(Throwable e) { e.printStackTrace(); } }
Example 2
Source File: WordCountDriver.java From cloud-bigtable-examples with Apache License 2.0 | 6 votes |
public static void main(String[] args) { ProgramDriver programDriver = new ProgramDriver(); int exitCode = -1; try { programDriver.addClass("wordcount-hbase", WordCountHBase.class, "A map/reduce program that counts the words in the input files."); programDriver.addClass("export-table", Export.class, "A map/reduce program that exports a table to a file."); //programDriver.addClass("cellcounter", CellCounter.class, "Count them cells!"); programDriver.driver(args); exitCode = programDriver.run(args); } catch (Throwable e) { e.printStackTrace(); } System.exit(exitCode); }
Example 3
Source File: ExampleDriver.java From bigdata-tutorial with Apache License 2.0 | 6 votes |
public static void main(String argv[]) { int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("wordcount", WordCount.class, "A map/reduce program that counts the words in the input files."); pgd.addClass("xflowstatic", XflowStatic.class, "A map/reduce program that static xflow from data files."); exitCode = pgd.run(argv); } catch (Throwable e) { e.printStackTrace(); } System.exit(exitCode); }
Example 4
Source File: HdfsTestDriver.java From big-c with Apache License 2.0 | 5 votes |
public HdfsTestDriver(ProgramDriver pgd) { this.pgd = pgd; try { pgd.addClass("dfsthroughput", BenchmarkThroughput.class, "measure hdfs throughput"); pgd.addClass("minidfscluster", MiniDFSClusterManager.class, "Run a single-process mini DFS cluster"); } catch(Throwable e) { e.printStackTrace(); } }
Example 5
Source File: AllTestDriver.java From RDFS with Apache License 2.0 | 5 votes |
/** * A description of the test program for running all the tests using jar file */ public static void main(String argv[]){ ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("threadedmapbench", ThreadedMapBenchmark.class, "A map/reduce benchmark that compares the performance " + "of maps with multiple spills over maps with 1 spill"); pgd.addClass("mrbench", MRBench.class, "A map/reduce benchmark that can create many small jobs"); pgd.addClass("nnbench", NNBench.class, "A benchmark that stresses the namenode."); pgd.addClass("mapredtest", TestMapRed.class, "A map/reduce test check."); pgd.addClass("testfilesystem", TestFileSystem.class, "A test for FileSystem read/write."); pgd.addClass("testsequencefile", TestSequenceFile.class, "A test for flat files of binary key value pairs."); pgd.addClass("testsetfile", TestSetFile.class, "A test for flat files of binary key/value pairs."); pgd.addClass("testarrayfile", TestArrayFile.class, "A test for flat files of binary key/value pairs."); pgd.addClass("testrpc", TestRPC.class, "A test for rpc."); pgd.addClass("testipc", TestIPC.class, "A test for ipc."); pgd.addClass("testsequencefileinputformat", TestSequenceFileInputFormat.class, "A test for sequence file input format."); pgd.addClass("testtextinputformat", TestTextInputFormat.class, "A test for text input format."); pgd.addClass("TestDFSIO", TestDFSIO.class, "Distributed i/o benchmark."); pgd.addClass("DFSCIOTest", DFSCIOTest.class, "Distributed i/o benchmark of libhdfs."); pgd.addClass("DistributedFSCheck", DistributedFSCheck.class, "Distributed checkup of the file system consistency."); pgd.addClass("testmapredsort", SortValidator.class, "A map/reduce program that validates the map-reduce framework's sort."); pgd.addClass("testbigmapoutput", BigMapOutput.class, "A map/reduce program that works on a very big " + "non-splittable file and does identity map/reduce"); pgd.addClass("loadgen", GenericMRLoadGenerator.class, "Generic map/reduce load generator"); pgd.addClass("filebench", FileBench.class, "Benchmark SequenceFile(Input|Output)Format (block,record compressed and uncompressed), Text(Input|Output)Format (compressed and uncompressed)"); pgd.addClass("dfsthroughput", BenchmarkThroughput.class, "measure hdfs throughput"); pgd.addClass("MRReliabilityTest", ReliabilityTest.class, "A program that tests the reliability of the MR framework by " + "injecting faults/failures"); pgd.driver(argv); } catch(Throwable e) { e.printStackTrace(); } }
Example 6
Source File: TestDriver.java From incubator-tez with Apache License 2.0 | 5 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("FaultToleranceTestRunner", FaultToleranceTestRunner.class, "Run different DAGs for fault tolerance testing"); exitCode = pgd.run(argv); } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 7
Source File: AnalyzerDriver.java From tez with Apache License 2.0 | 5 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("CriticalPath", CriticalPathAnalyzer.class, "Find the critical path of a DAG"); pgd.addClass("ContainerReuseAnalyzer", ContainerReuseAnalyzer.class, "Print container reuse details in a DAG"); pgd.addClass("LocalityAnalyzer", LocalityAnalyzer.class, "Print locality details in a DAG"); pgd.addClass("ShuffleTimeAnalyzer", ShuffleTimeAnalyzer.class, "Analyze the shuffle time details in a DAG"); pgd.addClass("SkewAnalyzer", SkewAnalyzer.class, "Analyze the skew details in a DAG"); pgd.addClass("SlowestVertexAnalyzer", SlowestVertexAnalyzer.class, "Print slowest vertex details in a DAG"); pgd.addClass("SlowNodeAnalyzer", SlowNodeAnalyzer.class, "Print node details in a DAG"); pgd.addClass("SlowTaskIdentifier", SlowTaskIdentifier.class, "Print slow task details in a DAG"); pgd.addClass("SpillAnalyzer", SpillAnalyzerImpl.class, "Print spill details in a DAG"); pgd.addClass("TaskAssignmentAnalyzer", TaskAssignmentAnalyzer.class, "Print task-to-node assignment details of a DAG"); pgd.addClass("TaskAttemptResultStatisticsAnalyzer", TaskAttemptResultStatisticsAnalyzer.class, "Print vertex:node:status level details of task attempt results"); pgd.addClass("TaskConcurrencyAnalyzer", TaskConcurrencyAnalyzer.class, "Print the task concurrency details in a DAG"); pgd.addClass("VertexLevelCriticalPathAnalyzer", VertexLevelCriticalPathAnalyzer.class, "Find critical path at vertex level in a DAG"); pgd.addClass("OneOnOneEdgeAnalyzer", OneOnOneEdgeAnalyzer.class, "Find out schedule misses in 1:1 edges in a DAG"); exitCode = pgd.run(argv); } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 8
Source File: ExampleDriver.java From tez with Apache License 2.0 | 5 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("wordcount", WordCount.class, "A native Tez wordcount program that counts the words in the input files."); pgd.addClass("orderedwordcount", OrderedWordCount.class, "Word Count with words sorted on frequency"); pgd.addClass("simplesessionexample", SimpleSessionExample.class, "Example to run multiple dags in a session"); pgd.addClass("hashjoin", HashJoinExample.class, "Identify all occurences of lines in file1 which also occur in file2 using hash join"); pgd.addClass("sortmergejoin", SortMergeJoinExample.class, "Identify all occurences of lines in file1 which also occur in file2 using sort merge join"); pgd.addClass("joindatagen", JoinDataGen.class, "Generate data to run the joinexample"); pgd.addClass("joinvalidate", JoinValidate.class, "Validate data generated by joinexample and joindatagen"); pgd.addClass("cartesianproduct", CartesianProduct.class, "Cartesian product of two datasets"); exitCode = pgd.run(argv); } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 9
Source File: CoreTestDriver.java From big-c with Apache License 2.0 | 5 votes |
public CoreTestDriver(ProgramDriver pgd) { this.pgd = pgd; try { pgd.addClass("testsetfile", TestSetFile.class, "A test for flat files of binary key/value pairs."); pgd.addClass("testarrayfile", TestArrayFile.class, "A test for flat files of binary key/value pairs."); pgd.addClass("testrpc", TestRPC.class, "A test for rpc."); pgd.addClass("testipc", TestIPC.class, "A test for ipc."); } catch(Throwable e) { e.printStackTrace(); } }
Example 10
Source File: OzoneTestDriver.java From hadoop-ozone with Apache License 2.0 | 5 votes |
public OzoneTestDriver(ProgramDriver pgd) { this.pgd = pgd; try { pgd.addClass("freon", Freon.class, "Populates ozone with data."); } catch(Throwable e) { e.printStackTrace(); } }
Example 11
Source File: TestDriver.java From tez with Apache License 2.0 | 5 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("FaultToleranceTestRunner", FaultToleranceTestRunner.class, "Run different DAGs for fault tolerance testing"); exitCode = pgd.run(argv); } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 12
Source File: YarnTestDriver.java From big-c with Apache License 2.0 | 5 votes |
public YarnTestDriver(ProgramDriver pgd) { this.pgd = pgd; try { pgd.addClass(TestZKRMStateStorePerf.class.getSimpleName(), TestZKRMStateStorePerf.class, "ZKRMStateStore i/o benchmark."); } catch(Throwable e) { e.printStackTrace(); } }
Example 13
Source File: CoreTestDriver.java From hadoop with Apache License 2.0 | 5 votes |
public CoreTestDriver(ProgramDriver pgd) { this.pgd = pgd; try { pgd.addClass("testsetfile", TestSetFile.class, "A test for flat files of binary key/value pairs."); pgd.addClass("testarrayfile", TestArrayFile.class, "A test for flat files of binary key/value pairs."); pgd.addClass("testrpc", TestRPC.class, "A test for rpc."); pgd.addClass("testipc", TestIPC.class, "A test for ipc."); } catch(Throwable e) { e.printStackTrace(); } }
Example 14
Source File: HdfsTestDriver.java From hadoop with Apache License 2.0 | 5 votes |
public HdfsTestDriver(ProgramDriver pgd) { this.pgd = pgd; try { pgd.addClass("dfsthroughput", BenchmarkThroughput.class, "measure hdfs throughput"); pgd.addClass("minidfscluster", MiniDFSClusterManager.class, "Run a single-process mini DFS cluster"); } catch(Throwable e) { e.printStackTrace(); } }
Example 15
Source File: ExampleDriver.java From big-c with Apache License 2.0 | 4 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("wordcount", WordCount.class, "A map/reduce program that counts the words in the input files."); pgd.addClass("aggregatewordcount", AggregateWordCount.class, "An Aggregate based map/reduce program that counts the words in the input files."); pgd.addClass("aggregatewordhist", AggregateWordHistogram.class, "An Aggregate based map/reduce program that computes the histogram of the words in the input files."); pgd.addClass("grep", Grep.class, "A map/reduce program that counts the matches of a regex in the input."); pgd.addClass("randomwriter", RandomWriter.class, "A map/reduce program that writes 10GB of random data per node."); pgd.addClass("randomtextwriter", RandomTextWriter.class, "A map/reduce program that writes 10GB of random textual data per node."); pgd.addClass("sort", Sort.class, "A map/reduce program that sorts the data written by the random writer."); pgd.addClass("pi", PiEstimator.class, "A map/reduce program that estimates Pi using monte-carlo method."); pgd.addClass("pentomino", DistributedPentomino.class, "A map/reduce tile laying program to find solutions to pentomino problems."); pgd.addClass("secondarysort", SecondarySort.class, "An example defining a secondary sort to the reduce."); pgd.addClass("sudoku", Sudoku.class, "A sudoku solver."); pgd.addClass("sleep", SleepJob.class, "A job that sleeps at each map and reduce task."); pgd.addClass("join", Join.class, "A job that effects a join over sorted, equally partitioned datasets"); pgd.addClass("multifilewc", MultiFileWordCount.class, "A job that counts words from several files."); pgd.addClass("dbcount", DBCountPageView.class, "An example job that count the pageview counts from a database."); pgd.addClass("teragen", TeraGen.class, "Generate data for the terasort"); pgd.addClass("terasort", TeraSort.class, "Run the terasort"); pgd.addClass("teravalidate", TeraValidate.class, "Checking results of terasort"); pgd.addClass("kmeans", Kmeans.class, "Kmeans on movies data"); pgd.addClass("classification", Classification.class, "Classify movies into clusters"); pgd.addClass("histogram_movies", HistogramMovies.class, "A map/reduce program that gives a histogram of movies based on ratings."); pgd.addClass("histogram_ratings", HistogramRatings.class, "A map/reduce program that gives a histogram of users ratings on movies."); pgd.addClass("selfjoin", SelfJoin.class, "A map/reduce program that creates k+1 associations given set of k-field associations"); pgd.addClass("invertedindex", InvertedIndex.class, "A map/reduce program that creates an inverted index of documents."); pgd.addClass("adjlist", AdjList.class, "A map/reduce program that finds adjacency list of graph nodes."); pgd.addClass("termvectorperhost", TermVectorPerHost.class, "A map/reduce program that creates the term-vectors (frequency of words) per document."); pgd.addClass("sequencecount", SequenceCount.class, "A map/reduce program that counts the occurrence of consecutive words in the input files."); pgd.addClass("rankedinvertedindex", RankedInvertedIndex.class, "A map/reduce program that creates the top k document lists per word"); pgd.driver(argv); // Success exitCode = 0; } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 16
Source File: ExampleDriver.java From hadoop-book with Apache License 2.0 | 4 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("wordcount", WordCount.class, "A map/reduce program that counts the words in the input files."); pgd.addClass("aggregatewordcount", AggregateWordCount.class, "An Aggregate based map/reduce program that counts the words in the input files."); pgd.addClass("aggregatewordhist", AggregateWordHistogram.class, "An Aggregate based map/reduce program that computes the histogram of the words in the input files."); pgd.addClass("grep", Grep.class, "A map/reduce program that counts the matches of a regex in the input."); pgd.addClass("randomwriter", RandomWriter.class, "A map/reduce program that writes 10GB of random data per node."); pgd.addClass("randomtextwriter", RandomTextWriter.class, "A map/reduce program that writes 10GB of random textual data per node."); pgd.addClass("sort", Sort.class, "A map/reduce program that sorts the data written by the random writer."); pgd.addClass("pi", PiEstimator.class, "A map/reduce program that estimates Pi using monte-carlo method."); pgd.addClass("pentomino", DistributedPentomino.class, "A map/reduce tile laying program to find solutions to pentomino problems."); pgd.addClass("secondarysort", SecondarySort.class, "An example defining a secondary sort to the reduce."); pgd.addClass("sudoku", Sudoku.class, "A sudoku solver."); pgd.addClass("sleep", SleepJob.class, "A job that sleeps at each map and reduce task."); pgd.addClass("join", Join.class, "A job that effects a join over sorted, equally partitioned datasets"); pgd.addClass("multifilewc", MultiFileWordCount.class, "A job that counts words from several files."); pgd.addClass("dbcount", DBCountPageView.class, "An example job that count the pageview counts from a database."); pgd.addClass("teragen", TeraGen.class, "Generate data for the terasort"); pgd.addClass("terasort", TeraSort.class, "Run the terasort"); pgd.addClass("teravalidate", TeraValidate.class, "Checking results of terasort"); pgd.driver(argv); // Success exitCode = 0; } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 17
Source File: ExampleDriver.java From hadoop-gpu with Apache License 2.0 | 4 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("wordcount", WordCount.class, "A map/reduce program that counts the words in the input files."); pgd.addClass("aggregatewordcount", AggregateWordCount.class, "An Aggregate based map/reduce program that counts the words in the input files."); pgd.addClass("aggregatewordhist", AggregateWordHistogram.class, "An Aggregate based map/reduce program that computes the histogram of the words in the input files."); pgd.addClass("grep", Grep.class, "A map/reduce program that counts the matches of a regex in the input."); pgd.addClass("randomwriter", RandomWriter.class, "A map/reduce program that writes 10GB of random data per node."); pgd.addClass("randomtextwriter", RandomTextWriter.class, "A map/reduce program that writes 10GB of random textual data per node."); pgd.addClass("sort", Sort.class, "A map/reduce program that sorts the data written by the random writer."); pgd.addClass("pi", PiEstimator.class, "A map/reduce program that estimates Pi using monte-carlo method."); pgd.addClass("pentomino", DistributedPentomino.class, "A map/reduce tile laying program to find solutions to pentomino problems."); pgd.addClass("secondarysort", SecondarySort.class, "An example defining a secondary sort to the reduce."); pgd.addClass("sudoku", Sudoku.class, "A sudoku solver."); pgd.addClass("sleep", SleepJob.class, "A job that sleeps at each map and reduce task."); pgd.addClass("join", Join.class, "A job that effects a join over sorted, equally partitioned datasets"); pgd.addClass("multifilewc", MultiFileWordCount.class, "A job that counts words from several files."); pgd.addClass("dbcount", DBCountPageView.class, "An example job that count the pageview counts from a database."); pgd.addClass("teragen", TeraGen.class, "Generate data for the terasort"); pgd.addClass("terasort", TeraSort.class, "Run the terasort"); pgd.addClass("teravalidate", TeraValidate.class, "Checking results of terasort"); pgd.driver(argv); // Success exitCode = 0; } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 18
Source File: ExampleDriver.java From hadoop with Apache License 2.0 | 4 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("wordcount", WordCount.class, "A map/reduce program that counts the words in the input files."); pgd.addClass("wordmean", WordMean.class, "A map/reduce program that counts the average length of the words in the input files."); pgd.addClass("wordmedian", WordMedian.class, "A map/reduce program that counts the median length of the words in the input files."); pgd.addClass("wordstandarddeviation", WordStandardDeviation.class, "A map/reduce program that counts the standard deviation of the length of the words in the input files."); pgd.addClass("aggregatewordcount", AggregateWordCount.class, "An Aggregate based map/reduce program that counts the words in the input files."); pgd.addClass("aggregatewordhist", AggregateWordHistogram.class, "An Aggregate based map/reduce program that computes the histogram of the words in the input files."); pgd.addClass("grep", Grep.class, "A map/reduce program that counts the matches of a regex in the input."); pgd.addClass("randomwriter", RandomWriter.class, "A map/reduce program that writes 10GB of random data per node."); pgd.addClass("randomtextwriter", RandomTextWriter.class, "A map/reduce program that writes 10GB of random textual data per node."); pgd.addClass("sort", Sort.class, "A map/reduce program that sorts the data written by the random writer."); pgd.addClass("pi", QuasiMonteCarlo.class, QuasiMonteCarlo.DESCRIPTION); pgd.addClass("bbp", BaileyBorweinPlouffe.class, BaileyBorweinPlouffe.DESCRIPTION); pgd.addClass("distbbp", DistBbp.class, DistBbp.DESCRIPTION); pgd.addClass("pentomino", DistributedPentomino.class, "A map/reduce tile laying program to find solutions to pentomino problems."); pgd.addClass("secondarysort", SecondarySort.class, "An example defining a secondary sort to the reduce."); pgd.addClass("sudoku", Sudoku.class, "A sudoku solver."); pgd.addClass("join", Join.class, "A job that effects a join over sorted, equally partitioned datasets"); pgd.addClass("multifilewc", MultiFileWordCount.class, "A job that counts words from several files."); pgd.addClass("dbcount", DBCountPageView.class, "An example job that count the pageview counts from a database."); pgd.addClass("teragen", TeraGen.class, "Generate data for the terasort"); pgd.addClass("terasort", TeraSort.class, "Run the terasort"); pgd.addClass("teravalidate", TeraValidate.class, "Checking results of terasort"); exitCode = pgd.run(argv); } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 19
Source File: ExampleDriver.java From incubator-tez with Apache License 2.0 | 4 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("wordcount", WordCount.class, "A map/reduce program that counts the words in the input files."); pgd.addClass("mapredwordcount", MapredWordCount.class, "A map/reduce program that counts the words in the input files" + " using the mapred apis."); pgd.addClass("randomwriter", RandomWriter.class, "A map/reduce program that writes 10GB of random data per node."); pgd.addClass("randomtextwriter", RandomTextWriter.class, "A map/reduce program that writes 10GB of random textual data per node."); pgd.addClass("sort", Sort.class, "A map/reduce program that sorts the data written by the random" + " writer."); pgd.addClass("secondarysort", SecondarySort.class, "An example defining a secondary sort to the reduce."); pgd.addClass("join", Join.class, "A job that effects a join over sorted, equally partitioned" + " datasets"); pgd.addClass("teragen", TeraGen.class, "Generate data for the terasort"); pgd.addClass("terasort", TeraSort.class, "Run the terasort"); pgd.addClass("teravalidate", TeraValidate.class, "Checking results of terasort"); pgd.addClass("groupbyorderbymrrtest", GroupByOrderByMRRTest.class, "A map-reduce-reduce program that does groupby-order by. Takes input" + " containing employee_name department name per line of input" + " and generates count of employees per department and" + " sorted on employee count"); pgd.addClass("mrrsleep", MRRSleepJob.class, "MRR Sleep Job"); pgd.addClass("orderedwordcount", OrderedWordCount.class, "Word Count with words sorted on frequency"); pgd.addClass("unionexample", UnionExample.class, "Union example"); pgd.addClass("broadcastAndOneToOneExample", BroadcastAndOneToOneExample.class, "BroadcastAndOneToOneExample example"); pgd.addClass("filterLinesByWord", FilterLinesByWord.class, "Filters lines by the specified word using broadcast edge"); pgd.addClass("filterLinesByWordOneToOne", FilterLinesByWordOneToOne.class, "Filters lines by the specified word using OneToOne edge"); pgd.addClass("intersect", IntersectExample.class, "Identify all occurences of lines in file1 which also occur in file2"); pgd.addClass("intersectdatagen", IntersectDataGen.class, "Generate data to run the intersect example"); pgd.addClass("intersectvalidate", IntersectValidate.class, "Validate data generated by intersect and intersectdatagen"); exitCode = pgd.run(argv); } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }
Example 20
Source File: ExampleDriver.java From tez with Apache License 2.0 | 4 votes |
public static void main(String argv[]){ int exitCode = -1; ProgramDriver pgd = new ProgramDriver(); try { pgd.addClass("broadcastloadgen", BroadcastLoadGen.class, "Run a DAG to generate load for Broadcast Shuffle"); pgd.addClass("rpcloadgen", RPCLoadGen.class, "Run a DAG to generate load for the task to AM RPC"); pgd.addClass("wordcount", MapredWordCount.class, "A map/reduce program that counts the words in the input files."); pgd.addClass("mapredwordcount", MapredWordCount.class, "A map/reduce program that counts the words in the input files" + " using the mapred apis."); pgd.addClass("randomwriter", RandomWriter.class, "A map/reduce program that writes 10GB of random data per node."); pgd.addClass("randomtextwriter", RandomTextWriter.class, "A map/reduce program that writes 10GB of random textual data per node."); pgd.addClass("sort", Sort.class, "A map/reduce program that sorts the data written by the random" + " writer."); pgd.addClass("secondarysort", SecondarySort.class, "An example defining a secondary sort to the reduce."); pgd.addClass("join", Join.class, "A job that effects a join over sorted, equally partitioned" + " datasets"); pgd.addClass("mrrsleep", MRRSleepJob.class, "MRR Sleep Job"); pgd.addClass("testorderedwordcount", TestOrderedWordCount.class, "Word Count with words sorted on frequency"); pgd.addClass("unionexample", UnionExample.class, "Union example"); pgd.addClass("broadcastAndOneToOneExample", BroadcastAndOneToOneExample.class, "BroadcastAndOneToOneExample example"); pgd.addClass("filterLinesByWord", FilterLinesByWord.class, "Filters lines by the specified word using broadcast edge"); pgd.addClass("filterLinesByWordOneToOne", FilterLinesByWordOneToOne.class, "Filters lines by the specified word using OneToOne edge"); pgd.addClass("multiplecommitsExample", MultipleCommitsExample.class, "Job with multiple commits in both vertex group and vertex"); pgd.addClass("cartesianproduct", CartesianProduct.class, "Cartesian Product Example"); exitCode = pgd.run(argv); } catch(Throwable e){ e.printStackTrace(); } System.exit(exitCode); }