[ 
https://issues.apache.org/jira/browse/HIVE-17135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094887#comment-16094887
 ] 

Carter Shanklin commented on HIVE-17135:
----------------------------------------

One more problem: Connection Refused is also not reported properly when using 
binary and SSL

Compare:
Error: Could not open client transport with JDBC Uri: 
jdbc:hive2://hdp261.example.com:10003/default;ssl=true;sslTrustStore=/etc/truststore.jks;trustStorePassword=abcdef:
 Could not connect to hdp261.example.com on port 10003 (state=08S01,code=0)

Versus:

Error: Could not open client transport with JDBC Uri: 
jdbc:hive2://hdp261.example.com:10003/default;ssl=true;sslTrustStore=/etc/truststore.jks;trustStorePassword=abcdef;transportMode=http;httpPath=cliservice:
 Could not establish connection to 
jdbc:hive2://hdp261.example.com:10003/default;ssl=true;sslTrustStore=/etc/truststore.jks;trustStorePassword=abcdef;transportMode=http;httpPath=cliservice:
 org.apache.http.conn.HttpHostConnectException: Connect to 
hdp261.example.com:10003 [hdp261.example.com/192.168.59.21] failed: Connection 
refused (Connection refused) (state=08S01,code=0)

> Bad error messages when beeline connects to unreachable hosts using binary 
> and SSL
> ----------------------------------------------------------------------------------
>
>                 Key: HIVE-17135
>                 URL: https://issues.apache.org/jira/browse/HIVE-17135
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>            Reporter: Carter Shanklin
>         Attachments: Screen Shot 2017-07-20 at 08.42.07.png
>
>
> When you attempt to connect beeline to an unreachable host using both binary 
> transport and SSL you get a generic / unhelpful error message.
> If you use HTTP or you don't use SSL (binary or HTTP) you get a descriptive 
> error message.
> "Network is unreachable" <- for unroutable destinations
> "Connection timed out" <- for hosts that fail to respond for whatever reason.
> See attached image for the matrix.
> It would be better if binary+SSL gave the same descriptive errors



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to