java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:8158: java.net.ConnectException: Connection refused

Stack Overflow | rhea sinha | 8 months ago
  1. 0

    How do I connect to Hive on EMR through Eclipse?

    Stack Overflow | 8 months ago | rhea sinha
    java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:8158: java.net.ConnectException: Connection refused
  2. 0

    Getting error... in java hive connection while using hive.execution.engine=tez insted of mr

    Stack Overflow | 2 years ago
    java.sql.SQLException: java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning
  3. 0

    Connection refused to HiveServer2 via JDBC - Hortonworks

    hortonworks.com | 11 months ago
    java.sql.SQLException: Could not establish connection to jdbc:hive2://localhost:10000/default: java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ERROR jdbc.HiveConnection: Error opening session Hive

    Stack Overflow | 1 year ago | dilshad
    java.sql.SQLException: Could not establish connection to jdbc:hive2://localhost:10000/default: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{use:database=default})
  6. 0

    HiveServer2 MapR java.sql.SQLException: Error while compiling statement: FAILED: SemanticException No valid privileges

    Stack Overflow | 1 year ago | Matthew Moisen
    java.sql.SQLException: Error while compiling statement: FAILED: SemanticException No valid privileges Required privileges for this query: Server=HS2->Db=test->Table=*->action=insert;Server=HS2->Db=test->Table=*->action=select;

    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. java.sql.SQLException

      Could not open client transport with JDBC Uri: jdbc:hive2://localhost:8158: java.net.ConnectException: Connection refused

      at org.apache.hive.jdbc.HiveConnection.openTransport()
    2. org.apache.hive
      HiveDriver.connect
      1. org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:215)
      2. org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:163)
      3. org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
      3 frames
    3. Java RT
      DriverManager.getConnection
      1. java.sql.DriverManager.getConnection(DriverManager.java:664)
      2. java.sql.DriverManager.getConnection(DriverManager.java:247)
      2 frames
    4. com.readypulse.sparkanalytics
      HiveQLConnector.main
      1. com.readypulse.sparkanalytics.HiveQLConnector.<init>(HiveQLConnector.java:31)
      2. com.readypulse.sparkanalytics.HiveQLConnector.main(HiveQLConnector.java:83)
      2 frames