Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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
 
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.