无法通过cli启动apache配置单元

h4cxqtbf  于 2021-06-26  发布在  Hive
关注(0)|答案(1)|浏览(325)

我已经kerberized hadoop hortonworks集群运行。直线很好用。但当我启动hive时,它失败了,错误如下:

Caused by: MetaException(message:Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportException: GSS initiate failed

  [root@hdpm1 ~]# su - hive
  [hive@hdpm1 ~]$ hive
vyu0f0g1

vyu0f0g11#

在运行beeline之前,您必须使用kinit获取tgt,例如hive用户使用service keytab:

kinit -kt <path_to keystore> <principal_name>
kinit -kt /etc/security/keytabs/hive.service.keytab hive/<host>

相关问题