[ 
https://issues.apache.org/jira/browse/NUTCH-2375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057852#comment-16057852
 ] 

ASF GitHub Bot commented on NUTCH-2375:
---------------------------------------

Omkar20895 commented on issue #188: NUTCH-2375 Upgrade the code base from 
org.apache.hadoop.mapred to org.apache.hadoop.mapreduce
URL: https://github.com/apache/nutch/pull/188#issuecomment-310144221
 
 
   `public class NutchJob extends JobConf `
   Okay let me tell you my why I changed it, you see JobConf is no longer there 
in new Mapreduce API and hence I replaced it with Job class and now NutchJob 
extends Job class. 
   ```
   public NutchJob(Configuration conf) {
       super(conf, NutchJob.class);
   }
   ```
   If you look at the constructor it has a super call that will call Job(conf, 
class) which is deprecated and the documentation suggests to use getInstance 
instead. 
   
   Please refer to constructor summary section 
[here](https://hadoop.apache.org/docs/r2.7.3/api/org/apache/hadoop/mapreduce/Job.html).
  
   
   Please feel free to correct me if I am wrong. Thanks.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Upgrade the code base from org.apache.hadoop.mapred to 
> org.apache.hadoop.mapreduce
> ----------------------------------------------------------------------------------
>
>                 Key: NUTCH-2375
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2375
>             Project: Nutch
>          Issue Type: Improvement
>          Components: deployment
>            Reporter: Omkar Reddy
>
> Nutch is still using the deprecated org.apache.hadoop.mapred dependency which 
> has been deprecated. It need to be updated to org.apache.hadoop.mapreduce 
> dependency. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to