在Hive上配置SSL后无法远程访问Hive JDBC

时间:2019-03-22 09:51:24

标签: hadoop ssl jdbc hive

我在Hive上启用了SSL,然后,我尝试使用下面的连接Urls通过JDBC从JDBC通过JDBC连接到HIVE。

URL1: "jdbc:hive2://hostname:10000/default;ssl=true;sslTrustStore=<path-to-truststore>;trustStorePassword=<password>"

URL2: "jdbc:hive2://hostname:10000/default;ssl=1" 


**Error for Url1**: " Unexpected driver error occurred while connecting to database
Illegal character in path at index 57: hive2://dummyhost:00000/default;ssl=true;sslTrustStore=D:\cert\cmhost-keystore.jks;trustStorePassword=xyz"

**Error for Url2**:Could not open client transport with JDBC Uri: jdbc:hive2://192.168.0.180:10000/default;ssl=1: Invalid status 21
Invalid status 21

请纠正我在哪里做错了。

0 个答案:

没有答案