hadoop copy a local file to Hadoop SF error

Sasa88

i want to copy a local file in Hadoop FS. i run this command:

sara@ubuntu:/usr/lib/hadoop/hadoop-2.3.0/bin$  hadoop fs -copyFromLocal /home/sara/Downloads/CA-GrQc.txt /usr/lib/hadoop/hadoop-2.3.0/${HADOOP_HOME}/hdfs/namenode

and

sara@ubuntu:/usr/lib/hadoop/hadoop-2.3.0/bin$  hdfs dfs -copyFromLocal /home/sara/Downloads/CA-GrQc.txt /usr/lib/hadoop/hadoop-2.3.0/${HADOOP_HOME}/hdfs/namenode

and even if i run : hdfs dfs -ls

i get this error:

> WARN util.NativeCodeLoader: Unable to load native-hadoop library for
> your platform... using builtin-java classes where applicable
> copyFromLocal: `.': No such file or directory

i don't know why i get this error? Any idea please?

Serhiy

According to your input your Hadoop installation seems to be working fine. What is wrong, it that hadoop fs -copyFromLocal expect the directory HDFS directory as target directory, but not the local directory where the Hadoop stores its blocks.

So in you case the command should look like(for example):

sara@ubuntu:/usr/lib/hadoop/hadoop-2.3.0/bin$  hdfs dfs -copyFromLocal /home/sara/Downloads/CA-GrQc.txt /sampleDir/

Where the sampleDir is the directory you create with hadoop fs -mkdir command.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Can't copy local file in linux to hadoop

From Dev

hadoop: tasks not local with file?

From Dev

Cannot copy files from local file system to hadoop/hdfs on cloudera

From Dev

Hadoop: File Copy with Cascading 2.5.1 and Hadoop 2.2.0

From Dev

put file from local to hadoop environment

From Dev

Getting error when copying file from s3:// to local(hadoop) file system

From Dev

Getting error when copying file from s3:// to local(hadoop) file system

From Dev

Hadoop error while processing file with brackets

From Dev

MRJob fails with Hadoop error copyToLocal: [...] No such file or directory

From Dev

Mahout : output file giving error in Hadoop

From Dev

Error while copying file to HDFS in hadoop ecosystem

From Dev

How to copy first few lines of a large file in hadoop to a new file?

From Dev

How to copy first few lines of a large file in hadoop to a new file?

From Dev

hadoop copy or move

From Dev

Efficient copy method in Hadoop

From Dev

Can't create a Hadoop sequence file on a local file system

From Dev

Hadoop on Local FileSystem

From Dev

Hadoop on Local FileSystem

From Dev

Hadoop File Copy Native Java API vs WebHDFS

From Dev

Hadoop accessing 3rd party libraries from local file system of a Hadoop node

From Java

Read local Parquet file without Hadoop Path API

From Dev

Hadoop tools for moving files from local file system to HDFS

From Dev

Hadoop FileUtil.copy signature

From Dev

Reading file in Java Hadoop

From Dev

Store file on hadoop

From Dev

Distributed file processing in Hadoop?

From Dev

What is sequence file in hadoop?

From Dev

File Transfer in datanodes - hadoop

From Dev

Distributed file processing in Hadoop?

Related Related

HotTag

Archive