Support Questions

Find answers, ask questions, and share your expertise
Announcements
Now Live: Explore expert insights and technical deep dives on the new Cloudera Community BlogsRead the Announcement

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.