You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 input data:

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 the input data and uses map/reduce to sort the data:

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
  • No labels