Where is Hadoop Home directory?

Moderator: NorbertKrupa

Post Reply
User avatar
becky
Intermediate
Intermediate
Posts: 118
Joined: Sat Apr 28, 2012 11:37 am

Where is Hadoop Home directory?

Post by becky » Mon Jul 01, 2013 8:01 pm

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]#
THANKS - BECKSTER

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1775
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Where is Hadoop Home directory?

Post by JimKnicely » Tue Jul 02, 2013 5:38 pm

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!
Jim Knicely

Image

Note: I work for HPE. My views, opinions, and thoughts expressed here do not represent those of my employer.

User avatar
becky
Intermediate
Intermediate
Posts: 118
Joined: Sat Apr 28, 2012 11:37 am

Re: Where is Hadoop Home directory?

Post by becky » Tue Jul 02, 2013 7:33 pm

Cool thanks Jim! I guess Cloudera doesn't follow the standard Hadoop directory topology :cry:
THANKS - BECKSTER

Post Reply

Return to “Hadoop Connector”