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

2016-12-29T18:59:56

After installing cloudera HDC on fedora25 , I can create folders, but not files nor can I copy data from my local file system to HDFS.

This is the command I use:

sudo -u hdfs hadoop fs -copyFromLocal /home/mohammed/Documents/bbc.txt /kareem/corpora/

and this is what I get from the terminal:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
copyFromLocal: '/home/mohammed/Documents/bbc.txt': No such file or directory

How to overcome this problem?

Your kind help is highly appreciated!

Copyright License:
Author:「Mohammed」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/41378334/cannot-copy-files-from-local-file-system-to-hadoop-hdfs-on-cloudera

About “Cannot copy files from local file system to hadoop/hdfs on cloudera” questions

After installing cloudera HDC on fedora25 , I can create folders, but not files nor can I copy data from my local file system to HDFS. This is the command I use: sudo -u hdfs hadoop fs -copyFrom...
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-
I have installed hadoop on Ubuntu 14.04. I am getting the following error whenever I copy files from the local file system to HDFS. I am using this command: /usr/local/hadoop$ bin/hadoop dfs -
I have cloudera 5.7, I have Cloudera Manager too. under the directory /etc/hadoop, I saw three sub-directories. /etc/hadoop/conf /etc/hadoop/conf.cloudera.HDFS/ /etc/hadoop/conf.cloudera...
I've installed a cluster via Cloudera Manager, and now I need to launch the cluster manually. I've been using the following command: $ sudo -u hdfs hadoop namenode / datanode / jobtracker But ...
I am trying to create a folder in hdfs hadoop file system but it is not allowing me to create a folder using the user cloudera nor as root. What should I configure to make it to allow me to hier wa...
I'm trying to copy files from a local file system to the HDFS and it throws up an error indicating the file could only be replicated to 0 nodes instead of 1. ckharide-mac:bin hadoop$ ./hadoop dfs -
I have this scala and Java code running in Spark on Cloudera platform whose simple task is to perform Word count on the files in HDFS. My question is : What's the difference in reading the file wit...
I am trying to copy a csv file from my local file system to hadoop. But I am not able to successfully do it. I am not sure which permissions i need to change. As I understand. hdfs super user does ...
This is my first thread and am using using 5.4.0.1-130 Pentaho kettle version. I have installed hadoop-1.0.3 version in a VM player and I have bridged it using bridged network. I have Pentaho ins...

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