边城

软件就是驱动世界,改造世界

欢迎来到边城客栈


Ranger 集成Hive使用

前言

使用Ranger&Hive集成中,出现一些设置上的错误,记录于此.

问题

执行在hiveserver 命令行 set xxx报错如下

org.apache.hive.service.cli.HiveSQLException: Error while processing statement: Cannot modify ..** at runtime. It is not in list of params that are allowed to be modified at runtime

解决方案

在hiveserver2.xml文件中,添加如下配置,为以下命令添加白名单

```
  <property>
      <name>hive.security.authorization.sqlstd.confwhitelist.append</name>
      <value>mapred.*|hive.*|mapreduce.*|spark.*</value>
  </property>
  <property>
      <name>hive.security.authorization.sqlstd.confwhitelist</name>
      <value>mapred.*|hive.*|mapreduce.*|spark.*</value>
  </property>
```

打赏一个呗

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦