hive仓库远程链接:Peer indicated failure: Unsupported mechanism type PLAIN (state=08S01,code=0)

beeline connect to hiveserver2 kerberos

目的:利用beeline进行远程操作hive仓库

遇到问题:

利用beeline进行访问hive仓库报错
Peer indicated failure: Unsupported mechanism type PLAIN (state=08S01,code=0)

错误原因:
beeline链接语句问题,因为使用kerbrized 认证,所以需要查看hive-site.xml中的配置,进行改写相关操作






  hive.server2.thrift.port
  10001


  hive.server2.authentication
  KERBEROS


  hive.server2.authentication.kerberos.principal
  hive/


  hive.server2.authentication.kerberos.keytab
  /home/user/user.keytab


最终beeline链接语句:!connect jdbc:hive2://localhost:10001/default;principal=my_hive/[email protected] mysql_user mysql_passwd

你可能感兴趣的:(hive)