[
https://issues.apache.org/jira/browse/HIVE-13090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157294#comment-15157294
]
Thejas M Nair commented on HIVE-13090:
--------------------------------------
I should have searched for HIVE-13075 before creating this one. The patch is
very similar. Making [~wikp] the assignee for this bug to pass on the credit.
> Hive metastore crashes on NPE with ZooKeeperTokenStore
> ------------------------------------------------------
>
> Key: HIVE-13090
> URL: https://issues.apache.org/jira/browse/HIVE-13090
> Project: Hive
> Issue Type: Bug
> Components: Metastore, Security
> Affects Versions: 1.0.0, 1.1.1, 1.2.1
> Reporter: Thejas M Nair
> Assignee: Piotr Wikieł
> Attachments: HIVE-13090.1.patch
>
>
> Observed that hive metastore shutdown with NPE from ZookeeperTokenStore.
> {code}
> INFO [pool-5-thread-192]: metastore.HiveMetaStore
> (HiveMetaStore.java:logInfo(714)) - 191: Metastore shutdown complete.
> INFO [pool-5-thread-192]: HiveMetaStore.audit
> (HiveMetaStore.java:logAuditEvent(340)) - ugi=cvdpqap ip=/19.1.2.129
> cmd=Metastore shutdown complete.
> ERROR [Thread[Thread-6,5,main]]:
> thrift.TokenStoreDelegationTokenSecretManager
> (TokenStoreDelegationTokenSecretManager.java:run(331)) - ExpiredTokenRemover
> thread received unexpected exception.
> org.apache.hadoop.hive.thrift.DelegationTokenStore$TokenStoreException:
> Failed to decode token
> org.apache.hadoop.hive.thrift.DelegationTokenStore$TokenStoreException:
> Failed to decode token
> at
> org.apache.hadoop.hive.thrift.ZooKeeperTokenStore.getToken(ZooKeeperTokenStore.java:401)
> at
> org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager.removeExpiredTokens(TokenStoreDelegationTokenSecretManager.java:256)
> at
> org.apache.hadoop.hive.thrift.TokenStoreDelegationTokenSecretManager$ExpiredTokenRemover.run(TokenStoreDelegationTokenSecretManager.java:319)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.NullPointerException
> at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)
> at
> org.apache.hadoop.security.token.delegation.HiveDelegationTokenSupport.decodeDelegationTokenInformation(HiveDelegationTokenSupport.java:53)
> at
> org.apache.hadoop.hive.thrift.ZooKeeperTokenStore.getToken(ZooKeeperTokenStore.java:399)
> ... 3 more
> INFO [Thread-3]: metastore.HiveMetaStore (HiveMetaStore.java:run(5639)) -
> Shutting down hive metastore.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)