Cloudera CDH 5.7.2 / HBase:如何设置hfile.format.version? [英] Cloudera CDH 5.7.2 / HBase: How to Set hfile.format.version?

查看:888
本文介绍了Cloudera CDH 5.7.2 / HBase:如何设置hfile.format.version?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用CDH 5.7.2-1.cdh5.7.2.po.18,我试图使用Cloudera Manager将HBase配置为使用可见性标签和授权,如下面的Cloudera社区帖子中所述:





使用Cloudera Manager,我已成功更新了Cloudera Manager Hbase可见性标签以下属性的值:



不幸的是,无论出于何种原因,Cloudera Manager都不会将hfile.format.version变量le,所以我无法将它设置为3。



在更新上述三个变量后重新启动HBase时,角色日志中会显示以下错误:

错误org.apache.hadoop.hbase.coprocessor.CoprocessorHost:协处理器org.apache.hadoop.hbase.security.visibility.VisibilityController抛出java.lang.RuntimeException:要求保持安全标签的最小HFile版本为3。请考虑相应地设置hfile.format.version。



我很想相应地设置hfile.format.version,但是......我怎么做,当它不是暴露在Cloudera Manager中?例如,我可以修改文件系统上的某个配置文件吗? Cloudera Manager必须从某个地方获取当前设置。



谢谢!

解决方案
安全阀。它会让你设置任意的属性为你需要的任何值。以下示例参见
此文档


  1. 转到HBase服务。

  2. 单击配置选项卡。 >选择作用域> RegionServer。
  3. 选择类别>高级。
    找到HBase服务高级配置代码段(安全阀) site.xml属性,或通过在搜索框中输入它的名字来搜索它。
  4. 添加自定义XML(例如):


    $ b

    <属性>
    <名称>属性名称< /名称>
    <值>属性值< /值>
    < / property>



With CDH 5.7.2-1.cdh5.7.2.po.18, I am trying to use Cloudera Manager to configure HBase to use visibility labels and authorizations, as described in the Cloudera Community post below:

Cloudera Manager Hbase Visibility Labels

Using Cloudera Manager, I have successfully updated the values of the following properties:

  • hbase.coprocessor.region.classes: Set to org.apache.hadoop.hbase.security.visibility.VisibilityController
  • hbase.coprocessor.master.classes: Set to org.apache.hadoop.hbase.security.visibility.VisibilityController
  • hbase.security.authorization: Set to true

Unfortunately, for whatever reason, Cloudera Manager doesn't expose the hfile.format.version variable, so I am unable to set it to 3.

When I restart HBase after updating only the three aforementioned variables, errors such as the following appear in the role log:

ERROR org.apache.hadoop.hbase.coprocessor.CoprocessorHost: The coprocessor org.apache.hadoop.hbase.security.visibility.VisibilityController threw java.lang.RuntimeException: A minimum HFile version of 3 is required to persist security labels. Consider setting hfile.format.version accordingly.

I'd love to set hfile.format.version accordingly, but... how would I do that, when it's not exposed in Cloudera Manager? For example, is there some config file on the file system that I can modify? Cloudera Manager has to be getting the current settings from somewhere.

Thanks!

解决方案

Cloudera Manager has a configuration section it calls the Safety Valve for exactly this purpose. It will let you set arbitrary properties to whatever value you need. See this doc for the following example:

  1. Go to the HBase service.
  2. Click the Configuration tab.
  3. Select Scope > RegionServer.
  4. Select Category > Advanced.
  5. Locate the HBase Service Advanced Configuration Snippet (Safety Valve) for hbase-site.xml property, or search for it by typing its name in the Search box.

  6. Add your custom XML (e.g.):

    <property> <name>property-name</name> <value>property-value</value> </property>

这篇关于Cloudera CDH 5.7.2 / HBase:如何设置hfile.format.version?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆