• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sample Mapreduce code to process Zip files  RSS feed

 
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

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!