Problem scenario
You want to add a file to Hadoop. You are trying to run a basic Hadoop command to copy a file into HDFS. You get this error: copyFromLocal: `hdfs://localhost:54310/user/…’: No such file or directory
How do you copy a file from your OS into HDFS?
Solution
Do one of the following:
Option 1. Run this command to create a new directory (substitute “jdoe” with the name of your user):
hdfs dfs -mkdir -p /user/jdoe/contint
# Now repeat your copy command
Option 2.
…
Continue reading “How Do You Copy a File into HDFS without the Error “No such file or directory”?”