Check if there is /home/hduser (hdfs dfs -ls /home/hduser). I think it does not exist. Hadoop 2 does not create a subdirectory if parent directory does not exist.
Also, look for /user which is where hdfs looks for 'home' directories for users. On Tue, Jul 29, 2014 at 3:12 PM, Bhupathi, Ramakrishna <[email protected]> wrote: > I suspect there is something more fundamental… I am using Hadoop 2.2 . > > > > hduser@hadoop-master:~$ hdfs dfs -mkdir /home/hduser/dir1 > > 14/07/29 20:10:30 WARN util.NativeCodeLoader: Unable to load native-hadoop > library for your platform... using builtin-java classes > > where applicable > > mkdir: `/home/hduser/dir1': No such file or directory > > hduser@hadoop-master:~$ hadoop fs -mkdir /home/hduser/dir1 > > 14/07/29 20:10:51 WARN util.NativeCodeLoader: Unable to load native-hadoop > library for your platform... using builtin-java classes > > where applicable > > mkdir: `/home/hduser/dir1': No such file or directory > > hduser@hadoop-master:~$ > > > > --RamaK > > > > > > *From:* hadoop hive [mailto:[email protected]] > *Sent:* Tuesday, July 29, 2014 12:48 PM > *To:* [email protected] > *Subject:* Re: No such file or directory > > > > You are looking for local folder by hdfs, you need to create on hdfs then > only you can find it. > > Hadoop fs -mkdir /home/hduser/mydata > > Then try ls > > On Jul 29, 2014 11:47 PM, "Bhupathi, Ramakrishna" <[email protected]> > wrote: > > Folks, > > > > Can you help me with this ? I am not sure why I am getting this “No such > file or directory” for every hdfs command I use. The Hadoop deamons are > running. > > > > The /home/hduser/mydata directory has been formatted by the NameNode. > > > > hduser@hadoop-master:~/mydata$ hdfs dfs -ls ./hdfs/ > > 14/07/29 18:12:48 WARN util.NativeCodeLoader: Unable to load native-hadoop > library for your platform... using builtin-java classes > > where applicable > > ls: `./hdfs/': No such file or directory > > hduser@hadoop-master:~/mydata$ pwd > > /home/hduser/mydata > > hduser@hadoop-master:~/mydata$ hdfs dfs -ls /home/hduser/mydata > > 14/07/29 18:13:19 WARN util.NativeCodeLoader: Unable to load native-hadoop > library for your platform... using builtin-java classes > > where applicable > > ls: `/home/hduser/mydata': No such file or directory > > hduser@hadoop-master:~/mydata$ > > > > --RamaK > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
