org.apache.thrift.transport.TTransportException: Peer indicated failure: GSS initiate failed

Stack Overflow | amitmula | 4 months ago
  1. 0

    Apache Thrift java client with Kerberos security

    Stack Overflow | 4 months ago | amitmula
    org.apache.thrift.transport.TTransportException: Peer indicated failure: GSS initiate failed
  2. 0

    {noformat} beeline -u 'jdbc:hive2://localhost:10001/default?httpPath=/;transportMode=http' -n hdiuser scan complete in 15ms Connecting to jdbc:hive2://localhost:10001/default?httpPath=/;transportMode=http Java heap space Beeline version 0.14.0.2.2.4.1-1 by Apache Hive 0: jdbc:hive2://localhost:10001/default (closed)> ^C hdiuser@headnode0:~$ {noformat} But it works if I use the deprecated param - {noformat} hdiuser@headnode0:~$ beeline -u 'jdbc:hive2://localhost:10001/default?hive.server2.transport.mode=http;httpPath=/' -n hdiuser scan complete in 12ms Connecting to jdbc:hive2://localhost:10001/default?hive.server2.transport.mode=http;httpPath=/ 15/04/28 23:16:46 [main]: WARN jdbc.Utils: ***** JDBC param deprecation ***** 15/04/28 23:16:46 [main]: WARN jdbc.Utils: The use of hive.server2.transport.mode is deprecated. 15/04/28 23:16:46 [main]: WARN jdbc.Utils: Please use transportMode like so: jdbc:hive2://<host>:<port>/dbName;transportMode=<transport_mode_value> Connected to: Apache Hive (version 0.14.0.2.2.4.1-1) Driver: Hive JDBC (version 0.14.0.2.2.4.1-1) Transaction isolation: TRANSACTION_REPEATABLE_READ Beeline version 0.14.0.2.2.4.1-1 by Apache Hive 0: jdbc:hive2://localhost:10001/default> show tables; +------------------+--+ | tab_name | +------------------+--+ | hivesampletable | +------------------+--+ 1 row selected (18.181 seconds) 0: jdbc:hive2://localhost:10001/default> ^C hdiuser@headnode0:~$ ^C {noformat} The reason for the above message is : The url is wrong. Correct one: {noformat} beeline -u 'jdbc:hive2://localhost:10001/default;httpPath=/;transportMode=http' -n hdiuser {noformat} Note the ";" instead of "?". The deprecation msg prints the format as well: {noformat} Please use transportMode like so: jdbc:hive2://<host>:<port>/dbName;transportMode=<transport_mode_value> {noformat}

    Apache's JIRA Issue Tracker | 2 years ago | Hari Sankar Sivarama Subramaniyan
    java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10001/default?httpPath=/;transportMode=http: Invalid status 72
  3. 0

    hive

    solveseek.com | 2 years ago
    org.apache.thrift.transport.TTransportException: No common protection layer between client and server
  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

    GitHub comment 59#42850805

    GitHub | 3 years ago | prabhunkl
    java.lang.RuntimeException: java.sql.SQLException: Could not open connection to jdbc:hive2://168.69.200.211:10000/default: Peer indicated failure: Unsupported mechanism type PLAIN

    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

      Peer indicated failure: GSS initiate failed

      at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage()
    2. Apache Thrift
      TSaslClientTransport.open
      1. org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:199)
      2. org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:277)
      3. org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
      3 frames
    3. com.impetus.idw
      SentryServiceClient.main
      1. com.impetus.idw.sentry.SentryServiceClient.main(SentryServiceClient.java:55)
      1 frame