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
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.
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.