I have installed hadoop 2.6.0 and I'm playing around with it. I'm trying the Pseudo-distributed setup and I'm following the instructions on http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html#Execution I'm stuck at the 5th step i.e. when I run the command
bin/hdfs dfs -put etc/hadoop input
I get the below error.
15/02/02 00:35:49 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
put: `input': No such file or directory
Why am I getting this error? How can I resolve it?
In addition to what Ashrith wrote -p can also be added, just in case the directory is not yet created.
bin/hadoop fs -mkdir -p /path/to/hdfs/dir
Hope this helps someone else.