hadoop classpath

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

Syntax

hadoop classpath

Output Example

hadoop classpath
/opt/mapr/hadoop/hadoop-3.3.4/etc/hadoop:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/common/lib/:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/common/:/opt/mapr/lib/kvstore-7.2.0.19-mapr.jar:/opt/mapr/lib/json-1.8.jar:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/hdfs:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/hdfs/lib/:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/hdfs/:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/mapreduce/:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/yarn:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/yarn/lib/:/opt/mapr/hadoop/hadoop-3.3.4/share/hadoop/yarn/*