THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Hadoop YARN applications can be run from the command line on any node in the cluster.
The following example stress tests the Hadoop cluster by generating TeraSort uses TeraGen to generate input data for TeraSort:
Code Block |
---|
hadoop jar /opt/mapr/hadoop/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.1-mapr-1506-SNAPSHOT.jar teragen 10000 /outDir |
The following example uses TeraSort to sample sort the input data and uses using map/reduce to sort the data:
Code Block |
---|
hadoop jar /opt/mapr/hadoop/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.1-mapr-1506-SNAPSHOT.jar terasort /outDir /terasortOutDir |