简体   繁体   English

带有加密密码文件的beeline LDAP认证

[英]beeline LDAP authentication with encrypted password file

I am using Beeline CLI to connect HiveServer2. 我正在使用Beeline CLI连接HiveServer2。 I am using following command to connect: 我正在使用以下命令进行连接:

beeline -u jdbc:hive2://myhost.abc.com:10000/default -n myuser -w pass_sa -e "show tables;"

Connection is successful and I am able to access the Hive database but here my password is not encrypted here I am trying to use encrypted password using password file. 连接成功,我能够访问Hive数据库,但是这里的密码未加密,这里我尝试使用密码文件来使用加密的密码。

I am going through with several link but having confusion with LDAP authentication and Encrypted password authentication and looking for help on this. 我正在浏览几个链接,但对LDAP身份验证和加密密码身份验证感到困惑,并在此方面寻求帮助。

Since you have mentioned LDAP, I assume that you are using Kerberos and "myuser" is Active Directory or Kerberos realm account. 由于您已经提到LDAP,因此我假设您使用的是Kerberos,而“ myuser”是Active Directory或Kerberos领域帐户。 You have to authenticate your user with "kinit" and then run beeline without user and password. 您必须使用“ kinit”对用户进行身份验证,然后在没有用户名和密码的情况下运行直线。 Beeline should not ask for credentials. 直线不应要求提供凭据。

Try to run those steps: 尝试运行这些步骤:

su - myuser
kinit (and type the "myuser" password)
beeline -u "jdbc:hive2://myhost.abc.com:10000/default" -e "show tables;"

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

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