I've tried to add a text file to HDFS filesystem, but Hadoop refuses it with error message "No such file or directory".
$ bin/hdfs dfs -put /home/NDelt/Datasets/SampleText.txt /home/NDelt/HadoopDir/hdata
put: `/home/NDelt/HadoopDir/hdata': No such file or directory: `hdfs://localhost:9000/home/NDelt/HadoopDir/hdata'
But the path of SampleText.txt and hdata directory is correct. What is the problem?
This is my hdfs-site.xml file:
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>/home/NDelt/HadoopDir/hdata/dfs/namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>/home/NDelt/HadoopDir/hdata/dfs/datanode</value>
</property>
</configuration>