Reply
New Contributor
Posts: 1
Registered: ‎05-17-2017

hdfs: No such file or directory

Hi,

 

I have installed proof of concept Cloudera on 2 nodes cluster. At the beginning I had only one HDFS data node but at some point of time I created second data node on the second node. The problem is that it looks like I cannot use hdfs command as I am receiving following error:

 

/usr/lib/hadoop-hdfs/bin/hdfs: No such file or directory

 

The same concerns other scritps like hadoop:

 

/usr/bin/hadoop: line 8: /usr/lib/hadoop/bin/hadoop: No such file or directory

 

and pig for example:

 

root@cloudera-test2:~# pig
/usr/bin/hbase: line 16: /usr/lib/hbase/bin/hbase: No such file or directory
/usr/bin/pig: line 23: /usr/lib/pig/bin/pig: No such file or directory

 

I have found that I am able to use following command by using parcel for example: 

 

root@cloudera-test2:~# /opt/cloudera/parcels/CDH-5.11.0-1.cdh5.11.0.p0.34/bin/hadoop fs -ls /
Found 4 items
drwxr-xr-x - hbase hbase 0 2017-05-17 08:27 /hbase
drwxr-xr-x - hdfs supergroup 0 2017-05-15 15:53 /system
drwxrwxrwt - hdfs supergroup 0 2017-05-10 16:09 /tmp
drwxr-xr-x - hdfs supergroup 0 2017-05-04 12:19 /user

 

Could you please do let me know why it does not work on the second data node? On the first one I am able to use commands like hdfs, hadoop or pig without any issues.

 

Announcements