public static void setZkSSLParams(JdbcConnectionParams connParams) {
    Map<String, String> sessionConf = connParams.getSessionVars();
    boolean sslEnabled = false;
    if (sessionConf.containsKey(JdbcConnectionParams.ZOOKEEPER_SSL_ENABLE)) {
      sslEnabled = Boolean.parseBoolean(sessionConf.get(JdbcConnectionParams.ZOOKEEPER_SSL_ENABLE));
      connParams.setZooKeeperSslEnabled(sslEnabled);
    }
    if (sslEnabled) {
      connParams.setZookeeperKeyStoreLocation(
          StringUtils.defaultString(sessionConf.get(JdbcConnectionParams.ZOOKEEPER_KEYSTORE_LOCATION), ""));
      connParams.setZookeeperKeyStorePassword(
          StringUtils.defaultString(Utils.getPassword(sessionConf, JdbcConnectionParams.ZOOKEEPER_KEYSTORE_PASSWORD),
              ""));
      connParams.setZookeeperKeyStoreType(
          StringUtils.defaultString(sessionConf.get(JdbcConnectionParams.ZOOKEEPER_KEYSTORE_TYPE),""));
      connParams.setZookeeperTrustStoreLocation(
          StringUtils.defaultString(sessionConf.get(JdbcConnectionParams.ZOOKEEPER_TRUSTSTORE_LOCATION), ""));
      connParams.setZookeeperTrustStorePassword(
          StringUtils.defaultString(Utils.getPassword(sessionConf, JdbcConnectionParams.ZOOKEEPER_TRUSTSTORE_PASSWORD),
              ""));
      connParams.setZookeeperTrustStoreType(
          StringUtils.defaultString(sessionConf.get(JdbcConnectionParams.ZOOKEEPER_TRUSTSTORE_TYPE),""));
    }
  }
Parse and set up the SSL communication related Zookeeper params in connParams from sessionVars.
@param connParams
jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java