Page 1 of 1

Where is Hadoop Home directory?

Posted: Mon Jul 01, 2013 8:01 pm
by becky
Hey guys,

I've installed Cloudera's Hadoop and I I am trying to set up the Vertica connector. The first thing the documentation says I need to do is find the Hadoop home directory. If I echo $HADOOP_HOME I do not get any results ... The Vertica doc says I can use the command hadoop version to find the home directory. Can someone please take a look at the output below and help me figure outthe hadoop home directory? Thanks alot!

Code: Select all

[root@hadoop01]# hadoop version
Hadoop 2.0.0-cdh4.3.0
Subversion file:///data/1/jenkins/workspace/generic-package-rhel64-6-0/topdir/BUILD/hadoop-2.0.0-cdh4.3.0/src/hadoop-common-project/hadoop-common -r 48a9315b342ca16de92fcc5be95ae3650629155a
Compiled by jenkins on Mon May 27 19:45:25 PDT 2013
From source with checksum a4218d77f9b12df4e3e49ef96f9d357d
This command was run using /opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hadoop/hadoop-common-2.0.0-cdh4.3.0.jar
[root@hadoop01]#

Re: Where is Hadoop Home directory?

Posted: Tue Jul 02, 2013 5:38 pm
by JimKnicely
Hi Becky,

From the output in your post it looks like the Hadoop home is:

/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hadoop

You can also run the hadoop classpath command to list the paths of all the jar files used by Hadoop. From the output you should be able to find the home there too.

Thanks!

Re: Where is Hadoop Home directory?

Posted: Tue Jul 02, 2013 7:33 pm
by becky
Cool thanks Jim! I guess Cloudera doesn't follow the standard Hadoop directory topology :cry: