问题
最近几天将oracle的数据导入hbase中,导入其中一张表时出现如下错误。
ERROR mapreduce.LoadIncrementalHFiles: Trying to load more than 32 hfiles to family d of region with start key
原来是hbase在写入HFile时,一个列簇的文件数量不能超过32。
解决办法
在hbase-site.xml中添加:
<property>
<name>hbase.mapreduce.bulkload.max.hfiles.perRegion.perFamily</name>
<value>1024</value>
</property>