문제

My source files are located in ftp server in csv format. I want to import those files to HDFS for further processing. I am not aware about how to get those csv files. Can anyone help me on this?

도움이 되었습니까?

해결책

You can make this a 2 step process and upload files to hdfs.

Step 1: Download the files from ftp server and store in local . This should help : Transfer files from FTP server to local unix server

Step 2: Once you have the files in local you can use hadoop fs -put to transfer the files to hdfs.

Example. if you file name is temp.csv you can do:

hadoop fs -put temp.csv $hadoop_path
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top