private static CuratorFramework getZkClient(JdbcConnectionParams connParams) throws Exception {
    String zooKeeperEnsemble = connParams.getZooKeeperEnsemble();
    CuratorFramework zooKeeperClient =
        CuratorFrameworkFactory.builder()
            .connectString(zooKeeperEnsemble)
            .retryPolicy(new ExponentialBackoffRetry(1000, 3))
            .zookeeperFactory(
            new SSLZookeeperFactory(connParams.isZooKeeperSslEnabled(), connParams.getZookeeperKeyStoreLocation(),
                connParams.getZookeeperKeyStorePassword(), connParams.getZookeeperKeyStoreType(),
                connParams.getZookeeperTrustStoreLocation(),
                connParams.getZookeeperTrustStorePassword(), connParams.getZookeeperTrustStoreType()))
            .build();
    zooKeeperClient.start();
    return zooKeeperClient;
  }
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