hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <>
Subject [jira] [Commented] (HIVE-4625) HS2 should not attempt to get delegation token from metastore if using embedded metastore
Date Wed, 29 May 2013 03:02:20 GMT


Thejas M Nair commented on HIVE-4625:

Exception like following is thrown with metastore embedded mode - 
 ERROR metadata.Hive ( - java.lang.UnsupportedOperationException:
getDelegationToken() can be called only in thrift (non local) mode
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getDelegationToken(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(
        at $Proxy8.getDelegationToken(Unknown Source)
        at org.apache.hadoop.hive.ql.metadata.Hive.getDelegationToken(
        at org.apache.hive.service.cli.CLIService.getDelegationTokenFromMetaStore(
        at org.apache.hive.service.cli.thrift.ThriftCLIService.getSessionHandle(
        at org.apache.hive.service.cli.thrift.ThriftCLIService.OpenSession(
        at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(
        at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(
        at org.apache.thrift.ProcessFunction.process(
        at org.apache.thrift.TBaseProcessor.process(
        at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server$TUGIAssumingProcessor.process(
        at org.apache.thrift.server.TThreadPoolServer$
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
> HS2 should not attempt to get delegation token from metastore if using embedded metastore
> -----------------------------------------------------------------------------------------
>                 Key: HIVE-4625
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 0.11.0
>            Reporter: Thejas M Nair
> Hive server2 tries to get delegation token from metastore even if the metastore is being
used in embedded mode. 
> To avoid failure in that case, it uses catch block for UnsupportedOperationException
thrown that does nothing. But this leads to an error being logged  by lower levels and can
mislead users into thinking that there is a problem.
> It should check if delegation token mode is supported with current configuration before
calling the function.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message