Pass a Delete or a Put error in hbase mapreduce

后端 未结 2 1466
盖世英雄少女心
盖世英雄少女心 2021-01-26 02:03

I am getting below Error while running mapreduce on hbase:

java.io.IOException: Pass a Delete or a Put
    at org.apache.hadoop.hbase.mapreduce.TableOutputFormat         


        
相关标签:
2条回答
  • 2021-01-26 02:48

    The problem hasn't solved by the following code:

    job.setNumReduceTasks(0);
    

    It only help disable the reduce phase and skip the real problem in the reduce phase.

    Besides, there is problem in the configuration, you should include both mapred-site.xml and hbase-site.xml as the Configuration resources.

    0 讨论(0)
  • 2021-01-26 02:59

    Got Answer for my own question. I was setting mistakenly no of reducer tasks as '0'.

     job.setNumReduceTasks(0);
    

    So Mapper expects Put object to directly write into Hbase table.Commenting the above line solved the issue.

    0 讨论(0)
提交回复
热议问题