hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harisan...@apache.org
Subject hive git commit: HIVE-10753 : hs2 jdbc url - wrong connection string cause error on beeline/jdbc/odbc client, misleading message (Hari Subramaniyan, reviewed by Thejas Nair)
Date Wed, 27 May 2015 07:09:38 GMT
Repository: hive
Updated Branches:
  refs/heads/master b615de25b -> 5b423a87f


HIVE-10753 : hs2 jdbc url - wrong connection string cause error on beeline/jdbc/odbc client,
misleading message (Hari Subramaniyan, reviewed by Thejas Nair)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/5b423a87
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/5b423a87
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/5b423a87

Branch: refs/heads/master
Commit: 5b423a87f5b1cd65613b5f61a38186afbe6eda22
Parents: b615de2
Author: Hari Subramaniyan <harisankar@apache.org>
Authored: Wed May 27 00:09:28 2015 -0700
Committer: Hari Subramaniyan <harisankar@apache.org>
Committed: Wed May 27 00:09:28 2015 -0700

----------------------------------------------------------------------
 jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/5b423a87/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java b/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
index 1b2891b..306a1cd 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
@@ -225,6 +225,8 @@ public class HiveConnection implements java.sql.Connection {
           port = connParams.getPort();
           LOG.info("Will retry opening client transport");
         } else {
+          LOG.info("Transport Used for JDBC connection: " +
+            sessConfMap.get(JdbcConnectionParams.TRANSPORT_MODE));
           throw new SQLException("Could not open client transport with JDBC Uri: " + jdbcUriString
               + ": " + e.getMessage(), " 08S01", e);
         }
@@ -265,6 +267,9 @@ public class HiveConnection implements java.sql.Connection {
       }
     }
     catch (TException e) {
+      LOG.info("JDBC Connection Parameters used : useSSL = " + useSsl + " , httpPath  = "
+
+        sessConfMap.get(JdbcConnectionParams.HTTP_PATH) + " Authentication type = " +
+        sessConfMap.get(JdbcConnectionParams.AUTH_TYPE));
       String msg =  "Could not create http connection to " +
           jdbcUriString + ". " + e.getMessage();
       throw new TTransportException(msg, e);


Mime
View raw message