标签: hbase
如果满足列条件,我想在nettype中使用put()。
nettype
put()
所以我找到了Reducer方法。但是checkAndPut方法中不存在table实例。
Reducer
checkAndPut
table
我可以在HBase Reducer中使用reduce方法吗? 还是只有在满足列条件的情况下,才能在checkAndPut方法中使用put()的其他方式? (映射程序的源表与Reducer的目标表不同)
reduce
答案 0 :(得分:0)
是的,您可以在任何MapReduce作业的Reducer中使用checkAndPut。您需要具有一个实例或实例化HTable,然后使用checkandput