hbase nameerror:未初始化的常量是\u mob

7fyelxc5  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(610)

我是hbase-0.98.18-hadoop2的用户,尝试创建表时:

create 'MOBTable', {NAME => 'columFamily', VERSION => 1, IS_MOB => true, MOB_THRESHOLD => 102400}

出现错误:

NameError: uninitialized constant IS_MOB

但我在hbase-site.xml中添加了以下行:

<property>
  <name>hfile.format.version</name>
  <value>3</value>
</property>

为了支持hfile版本3。但问题仍然存在。我怎样才能解决这个问题?

n8ghc7c1

n8ghc7c11#

apache hbase的mob功能在您的版本中不可用 hbase-0.98.18 . 到目前为止,它只是通过https://issues.apache.org/jira/browse/hbase-11339. apachehbase还没有公开发布包含mob特性的版本。
您也许可以尝试使用包含cdh的apache hbase,从cdh 5.4.0版开始,它就支持mob功能:http://www.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_hbase_new_features_and_changes.html

相关问题