Normally, JDBC connection URL with username and password pairs which are use for accessing database would be enough. But, Kerberized Hive accessing defines some limitations.
AuthMech which is using as parameter on connection URL defines 5 different connection types.
0for No Authentication.
2for User Name.
3for User Name And Password.
6for Hadoop Delegation Token.
Due to driver communicates with Hive server through SSL-enabled socket, ssl property will be used as true.
The full path of the Java TrustStore containing the server certificate for one-way SSL authentication. If jssecacerts exists, it is used. But, not, cacerts is used.
Username and password pair which can access to AD is used on DriverManager class’s getConnection method.