文件new.txt可用;我不知道爲什麼當我試圖進入hdfs目錄時,它說文件不存在。Hadoop fs -cp,文件不存在?
[email protected]:/$ cd $HOME/fs
[email protected]:~/fs$ ls
new.txt
[email protected]:~/fs$ cat new.txt
an apple a day keeps the doctor away
[email protected]:~/fs$ hadoop fs -cp $HOME/fs/new.txt $HOME/hdfs
cp: File does not exist: /home/deepak/fs/new.txt
[email protected]:~/fs$
PS:我創建了一個目錄名爲HDFS已經:
[email protected]:~/fs$ hadoop fs -mkdir $HOME/hdfs
mkdir: cannot create directory /home/deepak/hdfs: File exists
謝謝,它工作完美!任何原因爲什麼-cp無法使用? – DeepakZephyr