yarn classpath

The yarn classpath command prints the class path needed to access the Hadoop jar and the required libraries.

Syntax

yarn classpath

Output

$ yarn classpath
/opt/mapr/hadoop/hadoop-<version>/etc/hadoop:/opt/mapr/hadoop/hadoop-<version>/etc/hadoop:/opt/mapr/hadoop/hadoop-<version>/etc/hadoop:/opt/mapr/hadoop/hadoop-<version>/share/hadoop/common/lib/*:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/common/*:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/hdfs:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/hdfs/lib/*:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/hdfs/*:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/yarn/lib/*:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/yarn/*:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/mapreduce/lib/*:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/mapreduce/*:
/contrib/capacity-scheduler/*.jar:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/yarn/*:
/opt/mapr/hadoop/hadoop-<version>/share/hadoop/yarn/lib/*