skip to main content
Connection property descriptions : ServerName
  

Try DataDirect Drivers Now

ServerName

Purpose

REQUIRED. Specifies either the IP address in IPv4 or IPv6 format, or the server name (if your network supports named servers) of the primary database server. When Apache ZooKeeper support is enabled (ZooKeeperDiscovery=true), this property specifies a list of member servers of the ZooKeeper ensemble to which you want to connect.
This property is supported only for data source connections.

Valid Values for a Single-Server Connection

server_name
where:
server_name
is a valid IP address or server name.

Valid Values for a ZooKeeper Connection (ZooKeeperDiscovery=true)

server_name:port_number | IP_address:port_number [, ...]
where:
server_name
is a valid server name.
port_number
is the port number.
IP_address
is a valid IP address.

Example

For a single-server connection:
122.23.15.12 or MyHiveServer
For a ZooKeeper connection:
ZKserver1:10000,255.125.1.11:2818,ZKserver3:2828

Data Source Method

setServerName

Default

None

Data Type

String

See also

*ZooKeeperDiscovery