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

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

    How do I connect to Hive on EMR through Eclipse?

    Stack Overflow | 10 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

    Connection to Spark SQL JDBC through Java Application fails

    Stack Overflow | 6 days ago | Priyansh Saxena
    java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://192.168.225.128:10015/default: java.net.ConnectException: Connection refused: connect
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connection refused to HiveServer2 via JDBC - Hortonworks

    hortonworks.com | 1 year ago
    java.sql.SQLException: Could not establish connection to jdbc:hive2://localhost:10000/default: java.net.ConnectException: Connection refused
  6. 0

    ERROR jdbc.HiveConnection: Error opening session Hive

    Stack Overflow | 2 years 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})

    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