[ https://issues.apache.org/jira/browse/HIVE-9100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14291588#comment-14291588 ]
Mariusz Strzelecki commented on HIVE-9100: ------------------------------------------ Hi, have you tried setting {{hive.cluster.delegation.token.store.class}} in metastore? By default all delegation tokens are stored in metastore's memory and service restart removes all of them. Metastore supports storing them in database or ZooKeeper (https://github.com/apache/hive/search?utf8=%E2%9C%93&q=%22implements+DelegationTokenStore%22&type=Code) For me, setting: {noformat} <property> <name>hive.cluster.delegation.token.store.class</name> <value>org.apache.hadoop.hive.thrift.DBTokenStore</value> </property> {noformat} helped with this issue. > HiveServer2 fail to connect to MetaStore after MetaStore restarting > -------------------------------------------------------------------- > > Key: HIVE-9100 > URL: https://issues.apache.org/jira/browse/HIVE-9100 > Project: Hive > Issue Type: Bug > Components: Authentication, HiveServer2, Security > Affects Versions: 0.14.0, 0.13.1 > Reporter: Nemon Lou > Attachments: hiveserver2.log, metastore.log > > > Secure cluster with kerberos,remote metastore. > How to reproduce : > 1,use beeline to connect to HiveServer2 > 2,restart the MetaStore process > 3,type command like 'show tables' in beeline > Client side will report this error: > {quote} > Error: Error while processing statement: FAILED: Execution Error, return code > 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Could > not connect to meta store using any of the URIs provided. Most recent > failure: org.apache.thrift.transport.TTransportException: Peer indicated > failure: DIGEST-MD5: IO error acquiring password > at > org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:190) > {quote} > HiveServer2's log and metastore's log are uploaded as attachments. -- This message was sent by Atlassian JIRA (v6.3.4#6332)