hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-12548) Hive metastore goes down in Kerberos,sentry enabled CDH5.5 cluster
Date Fri, 01 Jul 2016 10:33:10 GMT

    [ https://issues.apache.org/jira/browse/HIVE-12548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15358766#comment-15358766
] 

Qiang commented on HIVE-12548:
------------------------------

Hi Andrew:
   We just run into this exception when connect to hive in CDH5.5.1 with kerberos and sentry.
I tried your solution like this but it doesn't work.


      HiveConf conf = new HiveConf(); 
      Configuration c = new Configuration();
      if (System.getenv("HADOOP_TOKEN_FILE_LOCATION") != null) {
        c.set("mapreduce.job.credentials.binary", System.getenv("HADOOP_TOKEN_FILE_LOCATION"));
      }
      for (Token<?> token : UserGroupInformation.getCurrentUser().getTokens()) {
        String tokenKind = token.getKind().toString().toUpperCase();
        if (tokenKind.equals("MAPREDUCE_DELEGATION_TOKEN") || tokenKind.equals("YARN_CLIENT_TOKEN"))
{
          c.set(HIVE_METASTORE_TOKEN_SIGNATURE_PROPERTY, token.getService().toString());
          break;
        }
      }
      conf.addResource(c);

Any suggestions? Or, can you tell me why should we supoort HIVE_METASTORE_TOKEN_SIGNATURE_PROPERTY
with hive conf? 

Thanks

> Hive metastore goes down in Kerberos,sentry enabled CDH5.5 cluster
> ------------------------------------------------------------------
>
>                 Key: HIVE-12548
>                 URL: https://issues.apache.org/jira/browse/HIVE-12548
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, HiveServer2
>         Environment: RHEL 6.5 CLOUDERA CDH 5.5
>            Reporter: narendra reddy ganesana
>
> [pool-3-thread-10]: Error occurred during processing of message.
> java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: Invalid
status -128
> 	at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:219)
> 	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:739)
> 	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:736)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:356)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1651)
> 	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory.getTransport(HadoopThriftAuthBridge.java:736)
> 	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:268)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.thrift.transport.TTransportException: Invalid status -128
> 	at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:232)
> 	at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:184)
> 	at org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
> 	at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:271)
> 	at org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
> 	at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
> 	... 10 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message