Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.0/HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.0-mapr-1506-SNAPSHOT<version>.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.0/HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.0-mapr-1506-SNAPSHOT<version>.jar terasort /outDir /terasortOutDir