public static class ZKCuratorManager.HadoopZookeeperFactory extends Object implements org.apache.curator.utils.ZookeeperFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
JAAS_CLIENT_ENTRY |
| Constructor and Description |
|---|
HadoopZookeeperFactory(String zkPrincipal)
Constructor for the helper class to configure the ZooKeeper client connection.
|
HadoopZookeeperFactory(String zkPrincipal,
String kerberosPrincipal,
String kerberosKeytab)
Constructor for the helper class to configure the ZooKeeper client connection.
|
HadoopZookeeperFactory(String zkPrincipal,
String kerberosPrincipal,
String kerberosKeytab,
boolean sslEnabled,
SecurityUtil.TruststoreKeystore truststoreKeystore)
Constructor for the helper class to configure the ZooKeeper client connection.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.zookeeper.ZooKeeper |
newZooKeeper(String connectString,
int sessionTimeout,
org.apache.zookeeper.Watcher watcher,
boolean canBeReadOnly) |
org.apache.zookeeper.ZooKeeper |
newZooKeeper(String connectString,
int sessionTimeout,
org.apache.zookeeper.Watcher watcher,
boolean canBeReadOnly,
org.apache.zookeeper.client.ZKClientConfig zkClientConfig) |
public static final String JAAS_CLIENT_ENTRY
public HadoopZookeeperFactory(String zkPrincipal)
zkPrincipal - Optional.public HadoopZookeeperFactory(String zkPrincipal, String kerberosPrincipal, String kerberosKeytab)
zkPrincipal - Optional.kerberosPrincipal - Optional. Use along with kerberosKeytab.kerberosKeytab - Optional. Use along with kerberosPrincipal.public HadoopZookeeperFactory(String zkPrincipal, String kerberosPrincipal, String kerberosKeytab, boolean sslEnabled, SecurityUtil.TruststoreKeystore truststoreKeystore)
zkPrincipal - Optional.kerberosPrincipal - Optional. Use along with kerberosKeytab.kerberosKeytab - Optional. Use along with kerberosPrincipal.sslEnabled - Flag to enable SSL/TLS ZK client connection for each component
independently.truststoreKeystore - TruststoreKeystore object containing the keystoreLocation,
keystorePassword, truststoreLocation, truststorePassword for
SSL/TLS connection when sslEnabled is set to true.public org.apache.zookeeper.ZooKeeper newZooKeeper(String connectString, int sessionTimeout, org.apache.zookeeper.Watcher watcher, boolean canBeReadOnly) throws Exception
newZooKeeper in interface org.apache.curator.utils.ZookeeperFactoryExceptionpublic org.apache.zookeeper.ZooKeeper newZooKeeper(String connectString, int sessionTimeout, org.apache.zookeeper.Watcher watcher, boolean canBeReadOnly, org.apache.zookeeper.client.ZKClientConfig zkClientConfig) throws Exception
newZooKeeper in interface org.apache.curator.utils.ZookeeperFactoryExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.