Support Questions

Find answers, ask questions, and share your expertise

How to uncompress a zip file which is stored in HDFS?

avatar
New Contributor

I have a zip folder stored in HDFS containing multiple video files. I want to unzip  the folder in HDFS and want to access individual video file.

Can someone help me to find the solution for this?

1 ACCEPTED SOLUTION

avatar
Master Collaborator

@Amey3 

 

You cannot directly unzip the files in HDFS. You would have to uncompress the files on local and then place it on HDFS.

 

You can use Hue which uses a shell action in oozie to automate this. The files are uncompressed in the local and then uploaded to HDFS.

https://gethue.com/extract-archives-as-oozie-job/

 

Hope this helps,

Paras

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

View solution in original post

1 REPLY 1

avatar
Master Collaborator

@Amey3 

 

You cannot directly unzip the files in HDFS. You would have to uncompress the files on local and then place it on HDFS.

 

You can use Hue which uses a shell action in oozie to automate this. The files are uncompressed in the local and then uploaded to HDFS.

https://gethue.com/extract-archives-as-oozie-job/

 

Hope this helps,

Paras

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.