随着CDH 5.7.2-1.cdh5.7.2.po.18,我想使用的Cloudera Manager来HBase的配置为使用权限标签和授权,如下面的Cloudera的社区发帖描述:Cloudera CDH 5.7.2/HBase:如何设置hfile.format.version?
Cloudera Manager Hbase Visibility Labels
使用Cloudera的经理,我已经成功地更新的值以下属性:
- hbase.coprocessor.region.classes:设置为org.apache.hadoop.hbase.security.visibility.VisibilityController
- hbase.coprocessor.master.c lasses:设置为org.apache.hadoop.hbase.security.visibility.VisibilityController
- hbase.security.authorization:设置为true
不幸的是,无论出于何种原因,Cloudera的经理不公开HFILE。 format.version变量,所以我无法当我只更新上述三个变量之后重新启动HBase的将其设置为3
,错误,如下面出现在角色登录:
ERROR org.apache .hadoop.hbase.coprocessor.CoprocessorHost:协处理器org.apache.hadoop.hbase.security.visi bility.VisibilityController抛出java.lang.RuntimeException:持久化安全标签需要最小的HFile版本为3。考虑相应地设置hfile.format.version。
我很想相应地设置hfile.format.version,但是......我该怎么做,当它不是在Cloudera的经理暴露?例如,我可以修改文件系统上的某个配置文件吗? Cloudera Manager必须从某处获取当前设置。
谢谢!
谢谢!在Scope> RegionServer下的FYI,我找到了“hbase-site.xml的RegionServer高级配置代码段(安全阀)”。在Scope> Master下,我找到了“hbase-site.xml的主要高级配置代码段(安全阀)”。在Scope> HBase(Service-Wide)下,我找到了“hbase-site.xml的HBase服务高级配置代码片段(安全阀)”。我想我应该改变三者中的最后一个。 –
听起来没错。范围只是一个例子。 –
我在hbase-site.xml的“HBase Service Advanced Configuration Snippet(Safety Valve)”中(通过Scope> HBase(Service-Wide))设置了hfile.format.version。 HBase重启,没有我以前见过的那种错误。我认为这确实是解决方案。再次感谢! –