Sample Header Ad - 728x90

copyFromLocal Hadoop No such file or directory error

0 votes
1 answer
4352 views
I have the following code from the Fedora command terminal : [root@localhost python_code]# pwd /root/python_code [root@localhost python_code]# cd .. [root@localhost ~]# ls anaconda-ks.cfg python_code [root@localhost ~]# cd /usr/local [root@localhost local]# ls bin games hadoop-2.6.4.tar.gz input lib libexec sbin src etc hadoop include jdk1.8.0_77 lib64 output share [root@localhost local]# cd hadoop [root@localhost hadoop]# ls bin include libexec logs README.txt share etc lib LICENSE.txt NOTICE.txt sbin [root@localhost hadoop]# pwd /usr/local/hadoop [root@localhost hadoop]# bin/hdfs dfs -copyFromLocal /root/python_code/input_data.csv /usr/local/hadoop/input_localuser copyFromLocal: `/usr/local/hadoop/input_localuser': No such file or directory [root@localhost hadoop]# ls bin include libexec logs README.txt share etc lib LICENSE.txt NOTICE.txt sbin [root@localhost hadoop]# mkdir input_localuser [root@localhost hadoop]# ls bin include lib LICENSE.txt NOTICE.txt sbin etc input_localuser libexec logs README.txt share [root@localhost hadoop]# bin/hdfs dfs -copyFromLocal /root/python_code/input_data.csv /usr/local/hadoop/input_localuser copyFromLocal: `/usr/local/hadoop/input_localuser': No such file or directory [root@localhost hadoop]# bin/hdfs dfs -copyFromLocal /root/python_code/input_data.csv home/usr/local/hadoop/input_localuser copyFromLocal: `home/usr/local/hadoop/input_localuser': No such file or directory [root@localhost hadoop]# pwd /usr/local/hadoop [root@localhost hadoop]# ls bin include lib LICENSE.txt NOTICE.txt sbin etc input_localuser libexec logs README.txt share [root@localhost hadoop]# More Code : [root@localhost hadoop]# cd ~ [root@localhost ~]# ls anaconda-ks.cfg python_code [root@localhost ~]# cd python_code [root@localhost python_code]# ls data_generator.py input_data.csv mapper_project.py reducer_project.py [root@localhost python_code]# As seen above, my python_code directory is in root folder and I am trying to copy files from that folder to the directory input_userlocal which is inside hadoop. But the following command is throwing an error: bin/hdfs dfs -copyFromLocal /root/python_code/input_data.csv /usr/local/hadoop/input_localuser copyFromLocal: `/usr/local/hadoop/input_localuser': No such file or directory
Asked by John (125 rep)
Apr 30, 2016, 04:52 AM
Last activity: Sep 24, 2024, 10:06 PM