I did the following:
Deleted the direcotry /usr/lib/hadoop
Ran the command update-alternatives --install /usr/lib/hadoop hadoop-lib /usr/lib/hadoop-0.20 30
And it worked like charm!
From: Jarek Jarcec Cecho <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; sumit ghosh <[EMAIL PROTECTED]>
Sent: Monday, 3 December 2012 9:35 PM
Subject: Re: Fsqoop install issues
It seems that the issue was resolved in cdh-user mailing list .
On Mon, Dec 03, 2012 at 01:34:00AM -0800, sumit ghosh wrote:
> I am getting the following error when I try to run sqoop from a CDH3u5 Install on RHEL 5: (I have already posted this on CDH-user incase any one has a clue it will help)
> # sqoop version
> Warning: /usr/lib/hbase does not exist! HBase imports will fail.
> Please set $HBASE_HOME to the root of your HBase installation.
> /usr/lib/sqoop/bin/sqoop: line 101: /usr/lib/hadoop/bin/hadoop: No such file or directory
> /usr/lib/sqoop/bin/sqoop: line 101: exec: /usr/lib/hadoop/bin/hadoop: cannot execute: No such file or directory
> However my HADOOP_HOME points to a different location:
> # export | grep -i hadoop
> declare -x HADOOP_HOME="/usr/lib/hadoop- 0.20"
> sqoop user sees the corect directory-
> $ id
> uid=411(sqoop) gid=412(sqoop) groups=412(sqoop)
> $ echo $HADOOP_HOME
> What do I need to do to fix this issue?