Sunday 19 April 2015

SQOOP Installation Problem:

Error: /usr/lib/hadoop does not exist! Please set $HADOOP_COMMON_HOME to the root of your Hadoop installation.

I have got above error  lines when  i am configuring Sqoop in my Hadoop Invironment.

I have solved this problem by doing these steps.


Need to configure the sqoop-env.sh file

In the sqoop/conf directory , here we have to copy sqoop-env-templet.sh file to a new copy of a sqoop-env.sh file by running below coomand.

[root@charan/sqoop/conf]# cp sqoop-env-template.sh sqoop-env.sh

Modify the newly created sqoop-env.sh configuration file: 

>export HADOOP_COMMON_HOME=/home/hadoop/hadoop/hadoop-2.3.0

#Set path to where hadoop-*-core.jar is available

>export HADOOP_MAPRED_HOME=/home/hadoop/hadoop/hadoop-2.3.0

#set the path to where bin/hbase is available
>export HBASE_HOME=

#Set the path to where bin/hive is available
>export HIVE_HOME=

#Set the path for where zookeper config dir is
>export ZOOCFGDIR=


If wont set HBASE_HOME  and ZOOCFGDIR paths dont worry  it will give you warnings only.

then test sqoop is working or not.

charan@charan-Latitude-E5440:~$ sqoop

Warning: /usr/lib/hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /usr/lib/hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: $HADOOP_HOME is deprecated.





Thats  it..





No comments:

Post a Comment