cdh添加sentry服务
Cloudera Manager -> Cluster 1 -> Add Service -> Sentry
选择Sentry Server所在服务器,Gatway可以不选。
填写元数据库信息: sentry sentry sentrydemima
安装时如果由于缺少mysql jdbc驱动报错,请复制jdbc驱动到以下目录
cp /tmp/cloudera/mysql-connector-java-5.1.35.jar /opt/cloudera/parcels/CDH/lib/sentry/lib/
hive集成sentry
Clusters -> Hive -> Configuration -> Seach: sentry
Sentry Service [勾选] Sentry
关闭所有HiveServer2的Impersonation
Clusters -> Hive -> Configuration -> Seach: Impersonation
[去除勾选] HiveServer2
启用数据库存储通知
Clusters -> Hive -> Configuration -> Seach: Hive Metastore Server Default Group
[勾选] Hive Metastore Server Default Group
保存并重启hive服务
impala集成sentry
Clusters -> Impala -> Configuration -> Seach: Sentry
Sentry Service [勾选] Sentry
保存并重启Impala服务
hue集成sentry
Clusters -> Hue -> Configuration -> Seach: Sentry
Sentry Service [勾选] Sentry
保存并重启Hue服务
hdfs集成sentry
Clusters -> HDFS -> Configuration -> Seach:
启用访问控制列表或者dfs.namenode.acls.enabled [勾选] HDFS (Service-Wide)
启用 Sentry 同步 [勾选] HDFS (Service-Wide)
保存并重启HDFS服务