Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Where exactly classpaths for hadoop are present in hortonworks sandbox and also in cluster. My knowledge in hortonworks sandbox I have seen in /etc/hadoop/conf/0/hadoopenv.sh.

avatar
New Member
 
1 ACCEPTED SOLUTION

avatar

Hi @krishna sampath, do you want to read the classpath or add to it?

To get the whole classpath, you just need to run this command:

hadoop classpath 

If you want to add to it, you can do so in hadoop-env.sh. If you're using Ambari, you must update it in Ambari in the hadoop-env section of the HDFS configs and not on the filesystem directly, as Ambari will overwrite any changes you make to the config files directly.

View solution in original post

1 REPLY 1

avatar

Hi @krishna sampath, do you want to read the classpath or add to it?

To get the whole classpath, you just need to run this command:

hadoop classpath 

If you want to add to it, you can do so in hadoop-env.sh. If you're using Ambari, you must update it in Ambari in the hadoop-env section of the HDFS configs and not on the filesystem directly, as Ambari will overwrite any changes you make to the config files directly.