aspose file tools*
The moose likes Hadoop and the fly likes Sample Mapreduce code to process Zip files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Hadoop
Bookmark "Sample Mapreduce code to process Zip files" Watch "Sample Mapreduce code to process Zip files" New topic
Author

Sample Mapreduce code to process Zip files

Varadhan Sesharaman
Ranch Hand

Joined: Apr 21, 2011
Posts: 30

Hi Guys,

I am an newbie to Hadoop and Mapreduce.

Now I need to process a zip file in myproject using Mapreduce, like input have to be a zip file and the output may be zip or text file.

Can anyone give me sample or suggest me a link for that.


Thanks,
varadhan.S

amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 514
Hello,
You will have to implement your own InputFormat that would read the input ZIP file.
Moreover, you also need your own record reader implementation to define a record to be processed by a Map job.

Regards,
Amit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sample Mapreduce code to process Zip files