|
@@ -524,7 +524,7 @@ server.3=zoo3:2888:3888</pre>
|
|
|
|
|
|
|
|
|
<p>
|
|
|
-<span class="codefrag computeroutput">$ java -cp zookeeper.jar:lib/slf4j-api-1.6.1.jar:lib/slf4j-log4j12-1.6.1.jar:lib/log4j-1.2.15.jar:conf \
|
|
|
+<span class="codefrag computeroutput">$ java -cp zookeeper.jar:lib/slf4j-api-1.7.5.jar:lib/slf4j-log4j12-1.7.5.jar:lib/log4j-1.2.16.jar:conf \
|
|
|
org.apache.zookeeper.server.quorum.QuorumPeerMain zoo.cfg
|
|
|
</span>
|
|
|
</p>
|
|
@@ -561,7 +561,7 @@ server.3=zoo3:2888:3888</pre>
|
|
|
|
|
|
|
|
|
<p>
|
|
|
-<span class="codefrag computeroutput">$ java -cp zookeeper.jar:lib/slf4j-api-1.6.1.jar:lib/slf4j-log4j12-1.6.1.jar:lib/log4j-1.2.15.jar:conf:src/java/lib/jline-0.9.94.jar \
|
|
|
+<span class="codefrag computeroutput">$ java -cp zookeeper.jar:lib/slf4j-api-1.7.5.jar:lib/slf4j-log4j12-1.7.5.jar:lib/log4j-1.2.16.jar:conf:src/java/lib/jline-2.11.jar \
|
|
|
org.apache.zookeeper.ZooKeeperMain -server 127.0.0.1:2181</span>
|
|
|
</p>
|
|
|
|
|
@@ -885,7 +885,7 @@ server.3=zoo3:2888:3888</pre>
|
|
|
in the unlikely event a recent log has become corrupted). This
|
|
|
can be run as a cron job on the ZooKeeper server machines to
|
|
|
clean up the logs daily.</p>
|
|
|
-<pre class="code"> java -cp zookeeper.jar:lib/slf4j-api-1.6.1.jar:lib/slf4j-log4j12-1.6.1.jar:lib/log4j-1.2.15.jar:conf org.apache.zookeeper.server.PurgeTxnLog <dataDir> <snapDir> -n <count></pre>
|
|
|
+<pre class="code"> java -cp zookeeper.jar:lib/slf4j-api-1.7.5.jar:lib/slf4j-log4j12-1.7.5.jar:lib/log4j-1.2.16.jar:conf org.apache.zookeeper.server.PurgeTxnLog <dataDir> <snapDir> -n <count></pre>
|
|
|
<p>Automatic purging of the snapshots and corresponding
|
|
|
transaction logs was introduced in version 3.4.0 and can be
|
|
|
enabled via the following configuration parameters <strong>autopurge.snapRetainCount</strong> and <strong>autopurge.purgeInterval</strong>. For more on
|
|
@@ -1191,6 +1191,20 @@ server.3=zoo3:2888:3888</pre>
|
|
|
be triggered. Set to a positive integer (1 and above)
|
|
|
to enable the auto purging. Defaults to 0.</p>
|
|
|
</dd>
|
|
|
+
|
|
|
+
|
|
|
+<dt>
|
|
|
+<term>syncEnabled</term>
|
|
|
+</dt>
|
|
|
+<dd>
|
|
|
+<p>(Java system property: <strong>zookeeper.observer.syncEnabled</strong>)</p>
|
|
|
+<p>
|
|
|
+<strong>New in 3.4.6, 3.5.0:</strong>
|
|
|
+ The observers now log transaction and write snapshot to disk
|
|
|
+ by default like the participants. This reduces the recovery time
|
|
|
+ of the observers on restart. Set to "false" to disable this
|
|
|
+ feature. Default is "true"</p>
|
|
|
+</dd>
|
|
|
|
|
|
</dl>
|
|
|
<a name="sc_clusterOptions"></a>
|
|
@@ -1449,6 +1463,20 @@ server.3=zoo3:2888:3888</pre>
|
|
|
<p>Skips ACL checks. This results in a boost in throughput,
|
|
|
but opens up full access to the data tree to everyone.</p>
|
|
|
</dd>
|
|
|
+
|
|
|
+
|
|
|
+<dt>
|
|
|
+<term>quorumListenOnAllIPs</term>
|
|
|
+</dt>
|
|
|
+<dd>
|
|
|
+<p>When set to true the ZooKeeper server will listen
|
|
|
+ for connections from its peers on all available IP addresses,
|
|
|
+ and not only the address configured in the server list of the
|
|
|
+ configuration file. It affects the connections handling the
|
|
|
+ ZAB protocol and the Fast Leader Election protocol. Default
|
|
|
+ value is <strong>false</strong>.</p>
|
|
|
+</dd>
|
|
|
+
|
|
|
|
|
|
</dl>
|
|
|
<a name="Disabling+data+directory+autocreation"></a>
|