New Contributor
Posts: 2
Registered: ‎06-05-2018

SFTP from Local server to hdfs

>I am trying to transfer file from local server to hdfs directly rather than >sending the file first to hadoop local system and then moving from local to >hdfs. I am using the below command
>sftp > put file.txt /data/discovery/development
>"/data/discovery/development" is the hdfs path when i want to store the files
>when i tried to execute i am facing with "no such file or directory".
>Could you please help.

Cloudera Employee
Posts: 35
Registered: ‎10-20-2015

Re: SFTP from Local server to hdfs

Have you tried hadoop distcp?