Support Questions

Find answers, ask questions, and share your expertise

In Horotonworks sandbox 2.5 how to upload a zip file to HDFS

avatar
New Contributor
 
1 ACCEPTED SOLUTION

avatar
Super Guru
@jayachandra BABU

You can have multiple options to do it -

- Copy the zip file on gateway node on local Filesystem path and use "hadoop fs -put" or "hadoop fs -copyFromLocal" command to copy file from local FS to HDFS.

- You can have NFS gateway configured for hadoop hdfs and mount the hdfs to local FS path, where you can directly copy the files using scp or copy command.

View solution in original post

3 REPLIES 3

avatar
Super Guru
@jayachandra BABU

You can have multiple options to do it -

- Copy the zip file on gateway node on local Filesystem path and use "hadoop fs -put" or "hadoop fs -copyFromLocal" command to copy file from local FS to HDFS.

- You can have NFS gateway configured for hadoop hdfs and mount the hdfs to local FS path, where you can directly copy the files using scp or copy command.

avatar
New Contributor

Hi,

Thanks for your response.

Where to right this command because we didn't have command line interface.

We are not using any NFS.

My file is in local.

Regards,

Jayachandra Babu

avatar
Super Guru
@jayachandra BABU

The command should be use on cli. If you are not using cli then you might go for something like FTP server -

https://sites.google.com/a/iponweb.net/hadoop/Home/hdfs-over-ftp

If you want to continuously fetch data from remote system and dump in hadoop the you can also look for FLUME/Kafka.