简体   繁体   English

HDP 集群的 Apache ranger hive 插件不起作用

[英]Apache ranger hive plugin for HDP cluster is not working

I have a cluster HDP 3.1.5 and I have to apply ranger policies on hive but after successfully enabling hive plugin, its not getting registered in ranger --> audit --> plugin status.我有一个集群 HDP 3.1.5,我必须在 hive 上应用 ranger 策略,但是在成功启用 hive 插件后,它没有在 ranger --> audit --> 插件状态中注册。 And all resources(database, tables) in hive became inaccessible for all users.并且所有用户都无法访问 hive 中的所有资源(数据库、表)。 No default policy is created after enabling hive plugin.启用 hive 插件后不会创建默认策略。

在此处输入图像描述

在此处输入图像描述

In the service screen shot, there is no Hive service.在服务屏幕截图中,没有 Hive 服务。 As far as I know, before enabling the plugin, you need to create a service (repository) first.据我所知,在启用插件之前,您需要先创建一个服务(存储库)。

Please follow the below steps:请按照以下步骤操作:

  1. In the second screenshot, click + sign for Hive.在第二个屏幕截图中,单击 Hive 的+号。
  2. You need to fill the mandatory sections;您需要填写必填部分; Service Name , Username , Password , Jdbc.driverClassName , Jdbc.url (HS2 connection url). Service NameUsername名、 PasswordJdbc.driverClassNameJdbc.url (HS2 连接 url)。
  3. Test the connection;测试连接; 在此处输入图像描述
  4. Then add the service and go to hive-plugin directory.然后添加服务并转到 hive-plugin 目录。
  5. Modify install.properties file for hive-plugin (service name, Hive home dir etc).修改 hive-plugin 的install.properties文件(服务名称、Hive 主目录等)。
  6. Run sudo ./enable-hive-plugin.sh .运行sudo ./enable-hive-plugin.sh
  7. Restart Hive.重新启动 Hive。
  8. Now you should see hive-plugin in audit screen.现在您应该在审核屏幕中看到 hive-plugin。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM