Hadoop YARN applications can be run from the command line on any node in the cluster.
The following example uses TeraGen to generate input data for TeraSort:
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 sort the data using map/reduce:
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