Using WEBHDFS REST API calls can i transfer or copy the files from Windows machine(i.e. windows server or windows local folder or desktop) to Hadoop-HDFS file system?
If yes any sample command info?
I have tried and i was able to do using
Windows->(using ftp)-> Linux directory -> (using webhdfs) -> HDFS and this is two step process and i am looking for one step process directly from Windows -> (webhdfs) -> HDFS.
I referred in https://hadoop.apache.org/docs/r1.0.4/webhdfs.html for helpful info also.
Example : if my file is in E:\user\accounts.txt and i want to move this file to HDFS /user/kumar/ folder using webhdfs.
Currently what i am doing is
Step-1) ftp accounts file from Windows to linux directory.
Step-2) running curl commands to move the file from linux machine to HDFS folders.
Any suggestion to do it in one step process? Step-1) Windows -> HDFS using webhdfs in one step.
We can copy files from windows file system to HDFS by using scp command.
and also we can achieve this by using winscp tool. you can install it and establish a connect to hdfs server then files can be transfer.
This code uses JCIFS to copy through smb protocol to HDFS