Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copyFromLocal: `/user/hduser/gutenberg': No such file or directory

Tags:

hadoop

hadoop2

I have followed the guide of michael-noll so far but got stuck here.

hduser@ubuntu:/usr/local/hadoop$ bin/hadoop dfs -copyFromLocal /tmp/gutenberg /user/hduser/gutenberg
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

13/11/11 23:24:13 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
copyFromLocal: `/user/hduser/gutenberg': No such file or directory

hduser@ubuntu:/usr/local/hadoop$

I have tried reformatting the name node with 'Y' but getting same result every time for any arbitrary folder name.

Any ideas?

like image 385
Rushikesh J Avatar asked Nov 11 '13 18:11

Rushikesh J


2 Answers

Solved it by using the command like:

hduser@ubuntu:/usr/local/hadoop$ hdfs dfs -mkdir -p /user/hduser  
like image 68
Rushikesh J Avatar answered Sep 29 '22 08:09

Rushikesh J


Hadoop 2.4.1

hadoop fs -mkdir -p /user/hduser/sample
like image 30
user3675984 Avatar answered Sep 29 '22 10:09

user3675984