Reputation: 13
I am new at Java, Hadoop etc. I am having a problem when trying to copy a file to HDFS. It says: "-copyFromLocal: java.net.UnknownHostException: quickstart.cloudera (...)"
How can I solve this? It is a exercise. You can see the problem in the imagem below.
Thank you very much.
Upvotes: 1
Views: 359
Reputation: 3554
As error says you need to supply the HDFS folder path as destination. So the code should be like:
hadoop fs -copyFromLocal words.txt /HDFS/Folder/Path
Almost all errors that you get while working in Hadoop are Java errors as MapReduce was mostly written in Java. But that doesnt mean there is some Java error in it.
Upvotes: 1