hadoop copy a local file to Hadoop SF error

2017-01-26T22:51:15

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?

Copyright License:
Author:「Sasa88」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/41876171/hadoop-copy-a-local-file-to-hadoop-sf-error

About “hadoop copy a local file to Hadoop SF error” questions

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/${
I have installed hadoop. Now i am trying to copy one local file-system to hadoop file-system using below command. hadoop fs -copyFromLocal /mnt/PRO/wvdial.conf hdfs://virus/mydata/hdfs/data...
I want to copy updated files from local file system to Hadoop every hour as i want to put in cron. Is there any hadoop command that i can use to copy the updated files from local to Hadoop?
I have 1 Gb file on local file system /tmp/dist_testfle I can copy it it: hadoop fs -put file:///tmp/dist_testfile maprfs:/// But cannot distcp it. Command hadoop distcp file:///tmp/dist_testfile
When i try to copy directory of 3 files in hdfs i get following errors hduser@saket-K53SM:/usr/local/hadoop$ bin/hadoop dfs -copyFromLocal /tmp/gutenberg /user/hduser/gutenberg 12/08/01 23:48...
I'm still newbie with Hadoop. I've downloaded a cloudera VM image of hadoop and it did not contain hadoop-examples.jar. I want to manually copy the hadoop-examples.jar (I got it from somewhere) a...
My OS is Windows 10. Ubuntu 20.04.3 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64) installed on Windows 10. When I copy the local file to hadoop, I am receiving an error as 0 datanodes available. I a...
I'm new to Apache Hadoop and I'm trying to copy a simple text file from my local directory to HDFS on Hadoop, which is up and running. However, Hadoop is installed in D: while my file is in C:. If...
I'm trying to copy a local file called 'afile' to the HDFS. So I ran the following command: 'hadoop fs -copyFromLocal /home/neo/afile in' or 'hadoop fs -put /home/neo/afile in' However, it says:
I need to copy a folder from local file system to HDFS. I could not find any example of moving a folder(including its all subfolders) to HDFS $ hadoop fs -copyFromLocal /home/ubuntu/Source-Folder-To-

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.