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

3

16

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?

Breaststroke answered 11/11, 2013 at 18:2 Comment(1)
Solved it by using hduser@ubuntu:/usr/local/hadoop$ hdfs dfs -mkdir -p /user/hduser Thanks for reading.Breaststroke
B
27

Solved it by using the command like:

hduser@ubuntu:/usr/local/hadoop$ hdfs dfs -mkdir -p /user/hduser  
Breaststroke answered 12/11, 2013 at 18:12 Comment(0)
A
2

Hadoop 2.4.1

hadoop fs -mkdir -p /user/hduser/sample
Ancestress answered 12/8, 2014 at 6:58 Comment(0)
S
2

For Hadoop 2.6.0 :

Usage: hadoop fs -mkdir paths

Example:
hadoop/bin fs -mkdir /user/hduser

Ref: http://hortonworks.com/hadoop-tutorial/using-commandline-manage-files-hdfs/

Schall answered 12/7, 2015 at 11:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.