public class FlinkZooKeeperQuorumPeer extends Object
QuorumPeer, which reads a ZooKeeper config file and writes
the required 'myid' file before starting the peer.| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_ZOOKEEPER_CLIENT_PORT
ZooKeeper default client port.
|
static int |
DEFAULT_ZOOKEEPER_INIT_LIMIT
ZooKeeper default init limit.
|
static int |
DEFAULT_ZOOKEEPER_LEADER_PORT
ZooKeeper default leader port.
|
static int |
DEFAULT_ZOOKEEPER_PEER_PORT
ZooKeeper default peer port.
|
static int |
DEFAULT_ZOOKEEPER_SYNC_LIMIT
ZooKeeper default sync limit.
|
| 构造器和说明 |
|---|
FlinkZooKeeperQuorumPeer() |
public static final int DEFAULT_ZOOKEEPER_CLIENT_PORT
public static final int DEFAULT_ZOOKEEPER_INIT_LIMIT
public static final int DEFAULT_ZOOKEEPER_SYNC_LIMIT
public static final int DEFAULT_ZOOKEEPER_PEER_PORT
public static final int DEFAULT_ZOOKEEPER_LEADER_PORT
public static void main(String[] args)
public static void runFlinkZkQuorumPeer(String zkConfigFile, int peerId) throws Exception
QuorumPeer if further peers are configured or a single ZooKeeperServer if no further peers are configured.zkConfigFile - ZooKeeper config file 'zoo.cfg'peerId - ID for the 'myid' fileExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.