Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7107

Fix HiveServer1 JDBC Driver spec compliancy issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • None
    • None

    Description

      The HiveServer1 driver does not adhere to the JDBC standard of returning null when it can't handle a connection URL. It instead throws an exception which leads to subsequent exceptions (from other drivers, i.e. the HiveServer2 one) being swallowed.

      This is what you'd see:

      Error: Invalid URL: jdbc:hive2://localhost:10000/default;principal=hive/_HOST@EXAMPLE.COM (state=08S01,code=0)
      java.sql.SQLException: Invalid URL: jdbc:hive2://localhost:10000/default;principal=hive/_HOST@EXAMPLE.COM
      at org.apache.hadoop.hive.jdbc.HiveConnection.<init>(HiveConnection.java:86)

      In addition this patch cleans up the drivers a bit.

      Attachments

        1. HIVE-7107.2.patch
          19 kB
          Lars Francke
        2. HIVE-7107.2.patch
          1 kB
          Lars Francke

        Activity

          People

            larsfrancke Lars Francke
            larsfrancke Lars Francke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: