java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.sql.SQLException: Could not open connection to jdbc:hive2://host66:10000/defult;principal=bdp/admin@NBDP.COM;kerberosAuthType=fromSubject: GSS initiate failed

sourceforge.net | 4 months ago
  1. 0

    SQuirreL SQL Client / Feature Requests / #517 How to connected to hive jdbc with kerberos auth?

    sourceforge.net | 7 months ago
    java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.sql.SQLException: Could not open connection to jdbc:hive2://host66:10000/defult;principal=bdp/admin@NBDP.COM;kerberosAuthType=fromSubject: GSS initiate failed
  2. 0

    SQuirreL SQL Client / Feature Requests / #517 How to connected to hive jdbc with kerberos auth?

    sourceforge.net | 4 months ago
    java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.sql.SQLException: Could not open connection to jdbc:hive2://host66:10000/defult;principal=bdp/admin@NBDP.COM;kerberosAuthType=fromSubject: GSS initiate failed
  3. 0

    Explore service does not start in this environment, due to which /system/services returns NOTOK for explore, so integration tests do not even start. when I run the hive command, it throws the following exceptions: {code} $ hive version Logging initialized using configuration in jar:file:/usr/lib/hive/lib/hive-common-0.13.1-cdh5.2.6.jar!/hive-log4j.properties Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:347) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:689) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:633) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.main(RunJar.java:212) Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1426) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:63) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:73) at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2462) at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2481) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:341) ... 7 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1424) ... 12 more 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 at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:230) at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:306) at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:52) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:49) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport.open(TUGIAssumingTransport.java:49) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:347) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:216) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1424) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:63) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:73) at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2462) at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2481) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:341) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:689) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:633) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.main(RunJar.java:212) ) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:393) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:216) ... 17 more {code} From container logs: {code} 2015-09-17 00:40:48,501 - ERROR [main:o.a.t.i.ServiceMain@103] - Exception thrown from service TwillContainerService [FAILED]. java.util.concurrent.ExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: org.apache.hive.service.ServiceException: Unable to connect to MetaStore! at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:294) ~[com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:281) ~[com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) ~[com.google.guava.guava-13.0.1.jar:na] at org.apache.twill.internal.ServiceMain.doMain(ServiceMain.java:99) ~[org.apache.twill.twill-yarn-0.6.0-incubating.jar:0.6.0-incubating] at org.apache.twill.internal.container.TwillContainerMain.main(TwillContainerMain.java:107) [org.apache.twill.twill-yarn-0.6.0-incubating.jar:0.6.0-incubating] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75] at org.apache.twill.launcher.TwillLauncher.main(TwillLauncher.java:88) [launcher.2be487bf-8414-457a-a682-9326f69c2f51.jar:na] com.google.common.util.concurrent.UncheckedExecutionException: org.apache.hive.service.ServiceException: Unable to connect to MetaStore! at com.google.common.util.concurrent.Futures.wrapAndThrowUnchecked(Futures.java:1015) ~[com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.Futures.getUnchecked(Futures.java:1001) ~[com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractService.startAndWait(AbstractService.java:220) ~[com.google.guava.guava-13.0.1.jar:na] at com.google.common.util.concurrent.AbstractIdleService.startAndWait(AbstractIdleService.java:106) ~[com.google.guava.guava-13.0.1.jar:na] at co.cask.cdap.explore.executor.ExploreExecutorService.startUp(ExploreExecutorService.java:91) ~[co.cask.cdap.cdap-explore-3.2.0-SNAPSHOT.jar:na] at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:43) ~[com.google.guava.guava-13.0.1.jar:na] at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_75] Caused by: org.apache.hive.service.ServiceException: Unable to connect to MetaStore! at org.apache.hive.service.cli.CLIService.start(CLIService.java:137) ~[hive-service-0.13.1-cdh5.2.6.jar-1442450390775.jar:0.13.1-cdh5.2.6] at co.cask.cdap.explore.service.hive.BaseHiveExploreService.startUp(BaseHiveExploreService.java:277) ~[co.cask.cdap.cdap-explore-3.2.0-SNAPSHOT.jar:na] ... 2 common frames omitted Caused by: org.apache.hadoop.hive.metastore.api.MetaException: Got exception: org.apache.hadoop.hive.metastore.api.MetaException javax.jdo.JDODataStoreException: Communications link failure The last packet successfully received from the server was 184,895 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago. NestedThrowables: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 184,895 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago. at org.apache.hadoop.hive.metastore.MetaStoreUtils.logAndThrowMetaException(MetaStoreUtils.java:1116) ~[hive-metastore-0.13.1-cdh5.2.6.jar:0.13.1-cdh5.2.6] at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getDatabases(HiveMetaStoreClient.java:839) ~[hive-metastore-0.13.1-cdh5.2.6.jar:0.13.1-cdh5.2.6] at org.apache.hive.service.cli.CLIService.start(CLIService.java:135) ~[hive-service-0.13.1-cdh5.2.6.jar-1442450390775.jar:0.13.1-cdh5.2.6] ... 3 common frames omitted {code}

    Cask Community Issue Tracker | 1 year ago | Bhooshan Mogal
    org.apache.thrift.transport.TTransportException: GSS initiate failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [HIVE-4233] The TGT gotten from class 'CLIService' should be renewed on time - ASF JIRA

    apache.org | 1 year ago
    org.apache.thrift.transport.TTransportException: GSS initiate failed
  6. 0

    How to run shell script with hive action in an Oozie?

    Stack Overflow | 1 year ago | TwDme
    org.apache.thrift.transport.TTransportException: GSS initiate failed

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.thrift.transport.TTransportException

      GSS initiate failed

      at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage()
    2. Apache Thrift
      TSaslClientTransport.open
      1. org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:230)
      2. org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:306)
      3. org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
      3 frames
    3. org.apache.hive
      TSubjectAssumingTransport$1.run
      1. org.apache.hive.service.auth.TSubjectAssumingTransport$1.run(TSubjectAssumingTransport.java:51)
      2. org.apache.hive.service.auth.TSubjectAssumingTransport$1.run(TSubjectAssumingTransport.java:48)
      2 frames
    4. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:415)
      2 frames
    5. org.apache.hive
      HiveDriver.connect
      1. org.apache.hive.service.auth.TSubjectAssumingTransport.open(TSubjectAssumingTransport.java:48)
      2. org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:200)
      3. org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:177)
      4. org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
      4 frames
    6. net.sourceforge.squirrel_sql
      OpenConnectionCommand$1.run
      1. net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:133)
      2. net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:167)
      3. net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$000(OpenConnectionCommand.java:45)
      4. net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$1.run(OpenConnectionCommand.java:104)
      4 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:744)
      5 frames