Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Sentry to create roles and authorizations in Hue

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Refer to the official document: http://gethue.com/apache-sentry-made-easy-with-the-new-hue-security-app/#howto

Join the group of your hue administrator account in sentry's admin group

Open the hue configuration and enter

[libsentry]

# ip of the node where the sentry service resides

Hostname=sentry

# ipc port of sentry service

Port=8038

The path to the sentry-site.xml on the node of # hue (if there is no copy to come)

Sentry_conf_dir=/etc/sentry/conf

Configuration content (for reference only) sentry.service.security.mode none sentry.service.admin.group hive,impala,hue,solr,kafka,hbase,spark2,bigdataadmin sentry.service.allow.connect impala,hive,solr sentry.store.jdbc.url jdbc:derby:;databaseName=sentry_store_db;create=true sentry.store.jdbc.driver org.apache.derby.jdbc.EmbeddedDriver

The sentry.service.admin.group item must be consistent with the sentry server, and be sure to fill in your hue administrator account, otherwise the authorization button will be missing on the authorized page, because hue does not know that you are an admin user of sentry and thinks you do not have permission.

Finally, in the user group of hue, adding the corresponding user group of administrator is the same as the user group of the system in ldap. For example, my user bigdataadmin, the group name is also bigdataadmin, so that it can correspond to the configuration item sentry.service.admin.group in sentry.

Once all the steps have been completed, you can authorize it in the hue interface.

Go to the sentry management page:

Add roles and authorizations

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report