Zookeeper-server-start
Jump to navigation
Jump to search
zookeeper-server-start USAGE: /usr/local/Cellar/kafka/2.8.0/libexec/bin/zookeeper-server-start.sh [-daemon] zookeeper.properties
sudo zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties .../... [2021-07-09 12:25:01,199] INFO Server environment:java.io.tmpdir=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/ (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,200] INFO Server environment:java.compiler=<NA> (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,200] INFO Server environment:os.name=Mac OS X (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,200] INFO Server environment:os.arch=x86_64 (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,200] INFO Server environment:os.version=11.3 (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,200] INFO Server environment:user.name=root (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,201] INFO Server environment:user.home=/var/root (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,201] INFO Server environment:user.dir=/usr/local/bin (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,201] INFO Server environment:os.memory.free=497MB (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,201] INFO Server environment:os.memory.max=512MB (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,201] INFO Server environment:os.memory.total=512MB (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,205] INFO minSessionTimeout set to 6000 (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,205] INFO maxSessionTimeout set to 60000 (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,209] INFO Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 60000 datadir /usr/local/var/lib/zookeeper/version-2 snapdir /usr/local/var/lib/zookeeper/version-2 (org.apache.zookeeper.server.ZooKeeperServer) [2021-07-09 12:25:01,275] INFO Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory (org.apache.zookeeper.server.ServerCnxnFactory) [2021-07-09 12:25:01,284] INFO Configuring NIO connection handler with 10s sessionless connection timeout, 1 selector thread(s), 8 worker threads, and 64 kB direct buffers. (org.apache.zookeeper.server.NIOServerCnxnFactory) [2021-07-09 12:25:01,311] INFO binding to port 0.0.0.0/0.0.0.0:2181 (org.apache.zookeeper.server.NIOServerCnxnFactory) [2021-07-09 12:25:01,368] INFO zookeeper.snapshotSizeFactor = 0.33 (org.apache.zookeeper.server.ZKDatabase) [2021-07-09 12:25:01,377] INFO Snapshotting: 0x0 to /usr/local/var/lib/zookeeper/version-2/snapshot.0 (org.apache.zookeeper.server.persistence.FileTxnSnapLog) [2021-07-09 12:25:01,387] INFO Snapshotting: 0x0 to /usr/local/var/lib/zookeeper/version-2/snapshot.0 (org.apache.zookeeper.server.persistence.FileTxnSnapLog) [2021-07-09 12:25:01,442] INFO PrepRequestProcessor (sid:0) started, reconfigEnabled=false (org.apache.zookeeper.server.PrepRequestProcessor) [2021-07-09 12:25:01,456] INFO Using checkIntervalMs=60000 maxPerMinute=10000 (org.apache.zookeeper.server.ContainerManager)
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
[2021-07-09 12:20:14,082] INFO Reading configuration from: /usr/local/etc/kafka/zookeeper.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2021-07-09 12:20:14,098] INFO clientPortAddress is 0.0.0.0:2181 (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2021-07-09 12:20:14,099] INFO secureClientPort is not set (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2021-07-09 12:20:14,103] INFO autopurge.snapRetainCount set to 3 (org.apache.zookeeper.server.DatadirCleanupManager) [2021-07-09 12:20:14,104] INFO autopurge.purgeInterval set to 0 (org.apache.zookeeper.server.DatadirCleanupManager) [2021-07-09 12:20:14,104] INFO Purge task is not scheduled. (org.apache.zookeeper.server.DatadirCleanupManager) [2021-07-09 12:20:14,105] WARN Either no config or no quorum defined in config, running in standalone mode (org.apache.zookeeper.server.quorum.QuorumPeerMain) [2021-07-09 12:20:14,112] INFO Log4j 1.2 jmx support found and enabled. (org.apache.zookeeper.jmx.ManagedUtil) [2021-07-09 12:20:14,129] INFO Reading configuration from: /usr/local/etc/kafka/zookeeper.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2021-07-09 12:20:14,130] INFO clientPortAddress is 0.0.0.0:2181 (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2021-07-09 12:20:14,130] INFO secureClientPort is not set (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2021-07-09 12:20:14,130] INFO Starting server (org.apache.zookeeper.server.ZooKeeperServerMain) [2021-07-09 12:20:14,136] INFO zookeeper.snapshot.trust.empty : false (org.apache.zookeeper.server.persistence.FileTxnSnapLog) [2021-07-09 12:20:14,138] ERROR Unable to access datadir, exiting abnormally (org.apache.zookeeper.server.ZooKeeperServerMain) org.apache.zookeeper.server.persistence.FileTxnSnapLog$DatadirException: Unable to create data directory /usr/local/var/lib/zookeeper/version-2 at org.apache.zookeeper.server.persistence.FileTxnSnapLog.<init>(FileTxnSnapLog.java:127) at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:125) at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:107) at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:65) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:128) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82) Unable to access datadir, exiting abnormally
See also
Advertising: