| 属性 | 值 |
|---|---|
| hive.security.authorization.enabled | true |
| hive.metastore.execute.setugi | true |
| hive.metastore.execute.setugi | true |
| hive.security.authorization.createtable.owner.grants | ALL |
| hive.server2.enable.doAs | true |
| hive.server2.authentication | LDAP |
| hive.server2.authentication.ldap.url | ldap://inceptor_server_ip |
| hive.server2.authentication.ldap.baseDN | ou=Manager,dc=transwarp,dc=io |
| hive.semantic.analyzer.hook | org.apache.hadoop.hive.ql.parse.SimpleAdminAuthSemanticAnalyzerHook |
service hive-metastore-inceptor1 restart service hive-server-inceptor1 restart
/usr/lib/hive/bin/beeline -u jdbc:hive2://inceptor_server_ip:10000 -n hive -p (password you set)或者
/usr/lib/hive/bin/beeline beeline> !connect jdbc:hive2://inceptor_server_ip:10000
grant create on database default to user zhu;
revoke create on database default from user zhu;