skip to main content
Connection property descriptions : ZooKeeperDiscovery
  

Try DataDirect Drivers Now

ZooKeeperDiscovery

Purpose

Determines whether the driver uses Apache ZooKeeper when connecting to a database server.

Valid Values

false | true

Behavior

If set to false (Disabled), the driver does not use ZooKeeper when connecting to a database server. By default, the driver's behavior is determined by the connection property settings.
If set to true (Enabled), the driver attempts to connect to the member servers of a ZooKeeper ensemble that are specified by the ServerName connection property. At connection, the driver retrieves configuration information from the ZooKeeper service that determines the behavior of the driver for the connection. The retrieved configuration information takes precedent over any values specified using connection properties. For additional information, see "Apache ZooKeeper."

Notes

*In addition to enabling this property (ZooKeeperDiscovery=true), you must provide the following to retrieve configuration information from a ZooKeeper service:
*Using the ServerName connection property, specify the names (or addresses) and port numbers of the member servers of the ZooKeeper ensemble to which you want to connect. They must be specified using the following format:
server_name:port_number | IP_address:port_number [, ...]
See "ServerName" for details.
*Using the ZooKeeperNameSpace property, specify the name of the ZooKeeper name space to which you want to retrieve configuration information.

Data Source Method

setZooKeeperDiscovery

Default

false (Disabled)

Data Type

Boolean

See also

*Apache ZooKeeper
*ServerName
*ZooKeeperNamespace