Soheila S.
Soheila S.

Reputation: 59

Copied file from HDFS don't show in local machine

I copied a folder from HDFS to my local machine using the following command:

hdfs dfs -copyToLocal hdfs:///user/myname/output-64-32/ ~/Documents/fromHDFS

But I can not see any file in fromHDFS folder and also when I try to run the command again, it says "File exists". Any help is really appreciated.

Thanks.

Upvotes: 2

Views: 76

Answers (1)

Ramesh Maharjan
Ramesh Maharjan

Reputation: 41957

Try these

rm -r ~/Documents/fromHDFS/*
hdfs dfs -get /user/myname/output-64-32/ ~/Documents/fromHDFS/

Upvotes: 1

Related Questions