sqoop Eroor: /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.splice1.0.2.12/bin/../lib/sqoop/bin/sqoop: line 101: exec: /usr/lib/hadoop/bin/hadoop: cannot execute: No such file or directory

This is for Hadoop eco system like HDFS, Map reduce, Hive, Hbase, Pig, sqoop,sqoop2, Avro, solr, hcatalog, impala, Oozie, Zoo Keeper and Hadoop distribution like Cloudera, Hortonwork etc.
mina1234
Posts: 72
Joined: Tue May 05, 2015 7:08 pm
Contact:

sqoop Eroor: /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.splice1.0.2.12/bin/../lib/sqoop/bin/sqoop: line 101: exec: /usr/lib/hadoop/bin/hadoop: cannot execute: No such file or directory

Postby mina1234 » Wed Sep 23, 2015 5:53 pm

when I am running sqoop command on command prompt. I am getting below error for sqoop. I am using cloudera hadoop cluster 5.2.1.

[root@userf11~]# sqoop
Warning: /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.splice1.0.2.12/bin/../lib/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.splice1.0.2.12/bin/../lib/sqoop/bin/sqoop: line 101: /usr/lib/hadoop/bin/hadoop: No such file or directory
/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.splice1.0.2.12/bin/../lib/sqoop/bin/sqoop: line 101: exec: /usr/lib/hadoop/bin/hadoop: cannot execute: No such file or directory


forum_admin
Site Admin
Posts: 185
Joined: Wed Jul 16, 2014 9:22 pm
Contact:

Re: sqoop Eroor: /opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.splice1.0.2.12/bin/../lib/sqoop/bin/sqoop: line 101: exec: /usr/lib/hadoop/bin/hadoop: cannot execute: No such file or directory

Postby forum_admin » Wed Sep 23, 2015 10:29 pm

I think there are two hadoop bin path in your node. you will get correct hadoop installation path by below command.
hadoop version
remove multiple cdh file from the required destination.

go in the /usr/lib dir
[root@userroor lib]# rpm -qa | grep -i cdh
solr-doc-4.4.0+cdh5.1.0+231-1.cdh5.1.0.p0.32.el6.noarch
avro-libs-1.7.5+cdh5.1.0+30-1.cdh5.1.0.p0.31.el6.noarch
keytrustee-keyprovider-5.3.0-cdh5.3.0_1.x86_64
impala-shell-1.4.0+cdh5.1.0+0-1.cdh5.1.0.p0.92.el6.x86_64
avro-doc-1.7.5+cdh5.1.0+30-1.cdh5.1.0.p0.31.el6.noarch
hbase-solr-doc-1.5+cdh5.1.0+12-1.cdh5.1.0.p0.41.el6.noarch
cloudera-cdh-5-0.x86_64


you need to remove all above cdh file from usr/lib and hadoop from/usr/lib/hadoop/bin folder so
cp -r hadoop hadoop_bkup
rm -r hadoop
yum remove bigtop-utils bigtop-jsvc bigtop-tomcat hue-common sqoop2-client
yum remove solr-doc-4.4.0+cdh5.1.0+231-1.cdh5.1.0.p0.32.el6.noarch
yum remove impala-shell-1.4.0+cdh5.1.0+0-1.cdh5.1.0.p0.92.el6.x86_64


Return to “Hadoop and Big Data”

Who is online

Users browsing this forum: No registered users and 1 guest