• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sample Mapreduce code to process Zip files

 
Varadhan Sesharaman
Ranch Hand
Posts: 30
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!