I need to copy the a file from my filesystem into HDFS, and below is my configuration in hdfs-site.xml. How should I use the "hadoop fs" command to copy a file at /home/text.txt into the HDFS? Should I copy it into the namenode or datanode?
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:/usr/local/hadoop_store/hdfs/namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:/usr/local/hadoop_store/hdfs/datanode</value>
</property>
</configuration>