Hadoop mapreduce : Driver for chaining mappers within a MapReduce job

前端 未结 4 2072
长情又很酷
长情又很酷 2020-12-14 04:56

I have mapreduce job: my code Map class:

public static class MapClass extends Mapper {

    @Override
    public void m         


        
4条回答
  •  死守一世寂寞
    2020-12-14 05:55

    For the First argument of your ChainMapper.addMapper(), you have passed the job object. While the function is expecting a object of type JobConf. Rewriting to :

     ChainMapper.addMapper(
                (JobConf)conf, 
                MapClass.class, 
                Text.class, 
                Text.class, 
                Text.class, 
                Text.class, 
                true, 
                map1
                ); 
    

    should solve the problem..

提交回复
热议问题