I have a directory on my local hdfs environment, I want to copy it to my local computer. I am accessing the hdfs using ssh (with a password).
I tried many suggested copy command but did not work.
What I tried:
scp ‘username@hn0-sc-had:Downloads/*’ ~/Downloads
as mentioned in this link. What am I doing wrong?
SCP will copy from the remote Linux server.
HDFS does not exist on a single server or is a "local filesystem", therefore SCP is not the right tool to copy from it directly
Your options include
hdfs dfs -copyToLocal
in order to pull files from HDFS Or
hdfs dfs -copytoLocal
directly against HDFS from your own computer Or