Hadoop -copyFromLocal 找不到目的地
Hadoop -copyFromLocal cant find the destination
我尝试将文件从本地复制到 hadoop 文件系统...
我正在使用单节点集群
hduser@jothinathan-VirtualBox:~$ hdfs dfs -mkdir -p /usr/hduser
hduser@jothinathan-VirtualBox:~$ hadoop fs -ls
Found 1 items
drwxr-xr-x - hduser supergroup 0 2015-03-10 18:33 sample
hduser@jothinathan-VirtualBox:~$ cd Documents
hduser@jothinathan-VirtualBox:~/Documents$ ls
file hadoopFIle.txt URICat URICat.java
hduser@jothinathan-VirtualBox:~/Documents$ cd
hduser@jothinathan-VirtualBox:~$ hadoop fs -copyFromLocal /Documents/file /usr/local/hadoop
copyFromLocal: `/usr/local/hadoop': No such file or directory
我收到此错误消息,请帮我解决这个问题。
首先尝试这个命令。
hadoop fs -ls /
如果它列出本地文件系统文件。(不是 hdfs),然后尝试
hadoop fs -ls hdfs://IP-ADDRESS-of your-machine/
现在通过
将您的文件复制到 hdfs
hadoop fs -copyFromLocal /Documents/file hdfs://Ip-addressofyourmachine/above result path
我尝试将文件从本地复制到 hadoop 文件系统...
我正在使用单节点集群
hduser@jothinathan-VirtualBox:~$ hdfs dfs -mkdir -p /usr/hduser
hduser@jothinathan-VirtualBox:~$ hadoop fs -ls
Found 1 items
drwxr-xr-x - hduser supergroup 0 2015-03-10 18:33 sample
hduser@jothinathan-VirtualBox:~$ cd Documents
hduser@jothinathan-VirtualBox:~/Documents$ ls
file hadoopFIle.txt URICat URICat.java
hduser@jothinathan-VirtualBox:~/Documents$ cd
hduser@jothinathan-VirtualBox:~$ hadoop fs -copyFromLocal /Documents/file /usr/local/hadoop
copyFromLocal: `/usr/local/hadoop': No such file or directory
我收到此错误消息,请帮我解决这个问题。
首先尝试这个命令。
hadoop fs -ls /
如果它列出本地文件系统文件。(不是 hdfs),然后尝试
hadoop fs -ls hdfs://IP-ADDRESS-of your-machine/
现在通过
将您的文件复制到 hdfshadoop fs -copyFromLocal /Documents/file hdfs://Ip-addressofyourmachine/above result path