Support Questions
Find answers, ask questions, and share your expertise

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

New Contributor
 
1 ACCEPTED SOLUTION

@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

@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.

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

@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.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.