Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
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.