Interface ZookeeperConfigOptions
- All Known Implementing Classes:
MicroZookeeperService
public interface ZookeeperConfigOptions
Configuration options which are internal to Zookeeper,
as well as some other ZK constants
Zookeeper options are passed via system properties prior to the ZK Methods/classes being invoked. This implies that:
- There can only be one instance of a ZK client or service class in a single JVM —else their configuration options will conflict.
- It is safest to set these properties immediately before invoking ZK operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault flag for the ZK client: "true".static final Stringshould the ZK Server Allow failed SASL clients: "zookeeper.allowSaslFailedClients".static final StringEnable SASL secure clients: "zookeeper.sasl.client".static final StringPath to a kinit binary: "zookeeper.kinit".static final StringSystem property for the JAAS client context : "zookeeper.sasl.clientconfig".static final StringThe SASL client username: "zookeeper.sasl.client.username".static final StringShould ZK Server allow failed SASL clients to downgrade to classic authentication on a SASL auth failure: "zookeeper.maintain_connection_despite_sasl_failure".static final StringKerberos realm of the server: "zookeeper.server.realm".static final StringThe SASL Server context, referring to a context in the JVM's JAAS context file: "zookeeper.sasl.serverconfig"static final StringID scheme for digest auth: "digest".static final StringID scheme for SASL: "sasl".
-
Field Details
-
PROP_ZK_ENABLE_SASL_CLIENT
Enable SASL secure clients: "zookeeper.sasl.client". This is usually set to true, with ZK set to fall back to non-SASL authentication if the SASL auth fails by the propertyPROP_ZK_SERVER_MAINTAIN_CONNECTION_DESPITE_SASL_FAILURE.As a result, clients will default to attempting SASL-authentication, but revert to classic authentication/anonymous access on failure.
- See Also:
-
DEFAULT_ZK_ENABLE_SASL_CLIENT
Default flag for the ZK client: "true".- See Also:
-
PROP_ZK_SASL_CLIENT_CONTEXT
System property for the JAAS client context : "zookeeper.sasl.clientconfig". For SASL authentication to work, this must point to a context within theDefault value is derived from
ZKClientConfig.LOGIN_CONTEXT_NAME_KEY- See Also:
-
PROP_ZK_SASL_CLIENT_USERNAME
The SASL client username: "zookeeper.sasl.client.username".Set this to the short name of the client, e.g, "user", not
user/host, oruser/host@REALM- See Also:
-
PROP_ZK_SERVER_SASL_CONTEXT
The SASL Server context, referring to a context in the JVM's JAAS context file: "zookeeper.sasl.serverconfig"- See Also:
-
PROP_ZK_SERVER_MAINTAIN_CONNECTION_DESPITE_SASL_FAILURE
Should ZK Server allow failed SASL clients to downgrade to classic authentication on a SASL auth failure: "zookeeper.maintain_connection_despite_sasl_failure".- See Also:
-
PROP_ZK_ALLOW_FAILED_SASL_CLIENTS
should the ZK Server Allow failed SASL clients: "zookeeper.allowSaslFailedClients".- See Also:
-
PROP_ZK_SERVER_REALM
Kerberos realm of the server: "zookeeper.server.realm".- See Also:
-
PROP_ZK_KINIT_PATH
Path to a kinit binary: "zookeeper.kinit". Defaults to"/usr/bin/kinit"- See Also:
-
SCHEME_SASL
ID scheme for SASL: "sasl".- See Also:
-
SCHEME_DIGEST
ID scheme for digest auth: "digest".- See Also:
-