Sometimes you faced issue with Hadoop cluster setup on system with listing filesystem like ls: ‘.’: No such file or directory’. This issue occurs because of there is no home directory created on HDFS for your current user.
Advertisement
In order to resolve this issue create the home directory on HDFS. For example, you are logged with with user hduser on your system.
$ hdfs fs -mkdir -p /user/hduser
All set. Now you can list files and directories under Hadoop Distributed file system and do other operations normally.
$ hdfs fs -ls