Gus LR
Gus LR

Reputation: 13

Error: -copyFromLocal: java.net.UnknownHostException

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.

Image with the problem

Image 2 with the error

Thank you very much.

Upvotes: 1

Views: 359

Answers (1)

abhiieor
abhiieor

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

Related Questions