我在配置单元中配置了安全认证,但为什么不使用用户名和密码也可以访问数据库?

时间:2017-08-31 03:29:43

标签: authentication hive beeline

我在配置单元中配置了安全认证,我修改了

Enable Authorization   = true 
hive_security_authorization = SQLStdAuth
hive.users.in.admin.role
hive.security.authorization.createtable.owner.grants=ALL
hive.security.authorization.enabled=true
hive.metastore.authorization.storage.checks = true
hive.server2.enable.doAs=true

我可以使用直线连接jdbc:hive2:// hdp1-nn02:10000 /默认使用用户和密码,但我可以在没有用户和密码的情况下访问数据库使用beeline connect jdbc:hive2://。我知道jdbc:hive2://是嵌入模式,但为什么嵌入模式不授权?或者如何关闭嵌入模式?

0 个答案:

没有答案