VenuReddy2103 opened a new pull request, #4262:
URL: https://github.com/apache/hive/pull/4262

   ### What changes were proposed in this pull request?
   keyStore.load() is invoked with null password when the trustStorePassword is 
not passed in JDBC URL.
   
   
   ### Why are the changes needed?
   Client connection to HS2 fails with transportMode as http, ssl is enabled, 
sslTrustStore is specified without trustStorePassword in the JDBC URL. 
trustStorePassword is not a necessary parameter in connection URL. Connection 
can be established without it.
   
   From the javadocs 
[Link](https://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html#load(java.io.InputStream,%20char%5B%5D))
 A password may be given to unlock the keystore (e.g. the keystore resides on a 
hardware token device), or to check the integrity of the keystore data. If a 
password is not given for integrity checking, then integrity checking is not 
performed.
   
   At present, org.apache.hive.jdbc.HiveConnection#getHttpClient() access 
sslTrustStorePassword null reference(NPE) and fails.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Verified manually with cluster
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to