开发者

How do I write a Hadoop map reduce job without using deprecated classes?

开发者 https://www.devze.com 2023-03-07 23:55 出处:网络
I know it\'s my OCD, but I can\'t stand to have a deprecated reference in my code. That said, the Hadoop tutorials, including the \"The Definitive Guide\" book, uses only deprecated classes JobConf a

I know it's my OCD, but I can't stand to have a deprecated reference in my code.

That said, the Hadoop tutorials, including the "The Definitive Guide" book, uses only deprecated classes JobConf and classes开发者_JAVA百科 from the mapred package that are all deprecated.

Nowhere can I find any text on how to convert an existing MapReduce job to use the new construct.


I talked with the Cloudera people short time ago and they confirmed that the "new" functionality is incomplete and there's no way to write serious Hadoop stuff without using the "deprecated" packages.


This should be possible with 0.20.2. Unless you are not using some fancy join stuff. JobConf for example is deprecated because you can use Configuration. Or the old Mapper interface is now a class that is representing the old identity mapper.

Simple answer: you have to look through the java docs and see what the replacement actually is.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号