TDH的hive是继承到平台中的,需要使用远程的方式连接hive数据库,当kerberos开启后,需要添加kerberos协议规则;使用方式如下

  beeline -u 'jdbc:hive2://localhost:10000/demo;principal=hive/tdh-1@TDH;authentication=kerberos' -n hive -p 123456

 如果不加principal=hive/tdh-1@TDH;authentication=kerberos则使用的是LDAP方式,使用用户名和密码登陆的元数据库mysql;则会报错

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-08-31
猜你喜欢
  • 2022-12-23
  • 2021-05-21
  • 2021-10-03
  • 2022-12-23
  • 2021-07-31
相关资源
相似解决方案