Support Questions

Find answers, ask questions, and share your expertise

Sqoop error in CDP 7

avatar
Cloudera Employee

After upgrading to CDP 7.1.x sqoop fails with /opt/cloudera/parcels/CDH-7.1.4-1.cdh7.1.4.p0.6300266/bin/../lib/sqoop/bin/sqoop: line 101: /usr/lib/hadoop/bin/hadoop: No such file or directory. Is there a new directory location required or what is the error indicating?

 

Warning: /opt/cloudera/parcels/CDH-7.1.4-1.cdh7.1.4.p0.6300266/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-7.1.4-1.cdh7.1.4.p0.6300266/bin/../lib/sqoop/bin/sqoop: line 101: /usr/lib/hadoop/bin/hadoop: No such file or directory

1 REPLY 1

avatar
Expert Contributor

@RandyGoering 

 

Check whether the below path exists on the host/node where you are submitting the sqoop job.

 

/usr/lib/hadoop

 

If it does, please remove the path which will further allow HADOOP HOME to be set to /opt/cloudera/parcels/CDH/lib/hadoop which is the correct path.

 

for your reference:--> https://my.cloudera.com/knowledge/Sqoop-Command-Fails-after-Upgrade?id=70109