Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZOOKEEPER-2635: regenerate document for master / 3.6 branch. #203

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h1>ZooKeeper: Because Coordinating Distributed Systems is a Zoo</h1>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<div id="logos"></div>
<!--+
Expand Down
Binary file modified docs/index.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/javaExample.html
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ <h2 class="h3">Complete Source Listings</h2>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/javaExample.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/linkmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ <h1>Site Linkmap Table of Contents</h1>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/linkmap.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/recipes.html
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ <h3 class="h4">Leader Election</h3>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/recipes.pdf
Binary file not shown.
140 changes: 114 additions & 26 deletions docs/zookeeperAdmin.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ <h3>A Guide to Deployment and Administration</h3>
<a href="#Disabling+data+directory+autocreation">Disabling data directory autocreation</a>
</li>
<li>
<a href="#sc_db_existence_validation">Enabling db existence validation</a>
</li>
<li>
<a href="#sc_performance_options">Performance Tuning Options</a>
</li>
<li>
Expand All @@ -302,7 +305,7 @@ <h3>A Guide to Deployment and Administration</h3>
<a href="#sc_zkCommands">ZooKeeper Commands</a>
<ul class="minitoc">
<li>
<a href="#The+Four+Letter+Words">The Four Letter Words</a>
<a href="#sc_4lw">The Four Letter Words</a>
</li>
<li>
<a href="#sc_adminserver">The AdminServer</a>
Expand Down Expand Up @@ -637,6 +640,19 @@ <h3 class="h4">Clustered (Multi-Server) Setup</h3>
</li>


<li>

<p>Create an initialization marker file <span class="codefrag filename">initialize</span>
in the same directory as <span class="codefrag filename">myid</span>. This file indicates
that an empty data directory is expected. When present, an empty data base
is created and the marker file deleted. When not present, an empty data
directory will mean this peer will not have voting rights and it will not
populate the data directory until it communicates with an active leader.
Intended use is to only create this file when bringing up a new
ensemble. </p>

</li>

<li>

<p>If your configuration file is set up, you can start a
Expand Down Expand Up @@ -940,14 +956,10 @@ <h4>Ongoing Data Directory Cleanup</h4>
of the znodes stored by a particular serving ensemble. These
are the snapshot and transactional log files. As changes are
made to the znodes these changes are appended to a
transaction log. Occasionally, when a log grows large, a
transaction log, occasionally, when a log grows large, a
snapshot of the current state of all znodes will be written
to the filesystem and a new transaction log file is created
for future transactions. During snapshotting, ZooKeeper may
continue appending incoming transactions to the old log file.
Therefore, some transactions which are newer than a snapshot
may be found in the last transaction log preceding the
snapshot.
to the filesystem. This snapshot supercedes all previous
logs.
</p>
<p>A ZooKeeper server <strong>will not remove
old snapshots and log files</strong> when using the default
Expand Down Expand Up @@ -1205,10 +1217,8 @@ <h4>Advanced Configuration</h4>
<p>(Java system property: <strong>zookeeper.snapCount</strong>)</p>
<p>ZooKeeper logs transactions to a transaction
log. After snapCount transactions are written to a log
file a snapshot is started. It also influences rollover
of the current transaction log to a new file. However,
the creation of a new snapshot and rollover of transaction
log proceed independently. The default snapCount is
file a snapshot is started and a new transaction log
file is created. The default snapCount is
100,000.</p>
</dd>

Expand Down Expand Up @@ -1531,6 +1541,36 @@ <h4>Cluster Options</h4>
</p>
</dd>


<dt>
<term>4lw.commands.whitelist</term>
</dt>
<dd>
<p>(Java system property: <strong>zookeeper.4lw.commands.whitelist</strong>)</p>
<p>
<strong>New in 3.5.3:</strong>
A list of comma separated <a href="#sc_4lw">Four Letter Words</a>
commands that user wants to use. A valid Four Letter Words
command must be put in this list else ZooKeeper server will
not enable the command.
By default the whitelist only contains "srvr" command
which zkServer.sh uses. The rest of four letter word commands are disabled
by default.
</p>
<p>Here's an example of the configuration that enables stat, ruok, conf, and isro
command while disabling the rest of Four Letter Words command:</p>
<pre class="code">
4lw.commands.whitelist=stat, ruok, conf, isro
</pre>
<p>If you really need enable all four letter word commands by default, you can use
the asterisk option so you don't have to include every command one by one in the list.
As an example, this will enable all four letter word commands:
</p>
<pre class="code">
4lw.commands.whitelist=*
</pre>
</dd>


</dl>
<p></p>
Expand Down Expand Up @@ -1760,6 +1800,32 @@ <h4>Disabling data directory autocreation</h4>
it does not create a config file, but rather requires a config
file to be available in order to execute.
</p>
<a name="sc_db_existence_validation"></a>
<h4>Enabling db existence validation</h4>
<p>
<strong>New in 3.6.0:</strong> The default
behavior of a ZooKeeper server on startup when no data tree
is found is to set zxid to zero and join the quorum as a
voting member. This can be dangerous if some event (e.g. a
rogue 'rm -rf') has removed the data directory while the
server was down since this server may help elect a leader
that is missing transactions. Enabling db existence validation
will change the behavior on startup when no data tree is
found: the server joins the ensemble as a non-voting participant
until it is able to sync with the leader and acquire an up-to-date
version of the ensemble data. To indicate an empty data tree is
expected (ensemble creation), the user should place a file
'initialize' in the same directory as 'myid'. This file will
be detected and deleted by the server on startup.
</p>
<p> Initialization validation can be enabled when running
ZooKeeper servers directly from class files by setting
<strong>zookeeper.db.autocreate=false</strong>
on the java command line, i.e.
<strong>-Dzookeeper.db.autocreate=false</strong>.
Running <strong>zkServer-initialize.sh</strong>
will create the required initialization file.
</p>
<a name="sc_performance_options"></a>
<h4>Performance Tuning Options</h4>
<p>
Expand Down Expand Up @@ -1933,7 +1999,7 @@ <h4>AdminServer configuration</h4>
</dl>
<a name="sc_zkCommands"></a>
<h3 class="h4">ZooKeeper Commands</h3>
<a name="The+Four+Letter+Words"></a>
<a name="sc_4lw"></a>
<h4>The Four Letter Words</h4>
<p>ZooKeeper responds to a small set of commands. Each command is
composed of four letters. You issue the commands to ZooKeeper via telnet
Expand All @@ -1942,6 +2008,15 @@ <h4>The Four Letter Words</h4>
general information about the server and connected clients,
while "srvr" and "cons" give extended details on server and
connections respectively.</p>
<p>
<strong>New in 3.5.3:</strong>
Four Letter Words need to be explicitly white listed before using.
Please refer <strong>4lw.commands.whitelist</strong>
described in <a href="#sc_clusterOptions">
cluster configuration section</a> for details.
Moving forward, Four Letter Words will be deprecated, please use
<a href="#sc_adminserver">AdminServer</a> instead.
</p>
<dl>

<dt>
Expand Down Expand Up @@ -2301,7 +2376,7 @@ <h3 class="h4">Data File Management</h3>
on a dedicated log devices.</p>
<a name="The+Data+Directory"></a>
<h4>The Data Directory</h4>
<p>This directory has two files in it:</p>
<p>This directory has two or three files in it:</p>
<ul>

<li>
Expand All @@ -2313,6 +2388,15 @@ <h4>The Data Directory</h4>
</li>


<li>

<p>
<span class="codefrag filename">initialize</span> - presence indicates lack of
data tree is expected. Cleaned up once data tree is created.</p>

</li>


<li>

<p>
Expand Down Expand Up @@ -2350,11 +2434,8 @@ <h4>The Log Directory</h4>
<p>The Log Directory contains the ZooKeeper transaction logs.
Before any update takes place, ZooKeeper ensures that the transaction
that represents the update is written to non-volatile storage. A new
log file is started when the number of transactions written to the
current log file reaches a (variable) threshold. The threshold is
computed using the same parameter which influences the frequency of
snapshotting (see snapCount above). The log file's suffix is the first
zxid written to that log.</p>
log file is started each time a snapshot is begun. The log file's
suffix is the first zxid written to that log.</p>
<a name="sc_filemanagement"></a>
<h4>File Management</h4>
<p>The format of snapshot and log files does not change between
Expand All @@ -2369,12 +2450,8 @@ <h4>File Management</h4>
<p>The ZooKeeper server creates snapshot and log files, but
never deletes them. The retention policy of the data and log
files is implemented outside of the ZooKeeper server. The
server itself only needs the latest complete fuzzy snapshot, all log
files following it, and the last log file preceding it. The latter
requirement is necessary to include updates which happened after this
snapshot was started but went into the existing log file at that time.
This is possible because snapshotting and rolling over of logs
proceed somewhat independently in Zookeeper. See the
server itself only needs the latest complete fuzzy snapshot
and the log files from the start of that snapshot. See the
<a href="#sc_maintenance">maintenance</a> section in
this document for more details on setting a retention policy
and maintenance of ZooKeeper storage.
Expand Down Expand Up @@ -2443,6 +2520,17 @@ <h3 class="h4">Things to Avoid</h3>
is to run load tests, and then make sure you are well below the
usage limit that would cause the system to swap.</p>
</dd>


<dt>
<term>Publicly accessible deployment</term>
</dt>
<dd>
<p>
A ZooKeeper ensemble is expected to operate in a trusted computing environment.
It is thus recommended to deploy ZooKeeper behind a firewall.
</p>
</dd>

</dl>
<a name="sc_bestPractices"></a>
Expand Down Expand Up @@ -2475,7 +2563,7 @@ <h3 class="h4">Best Practices</h3>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/zookeeperAdmin.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/zookeeperHierarchicalQuorums.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ <h1>Introduction to hierarchical quorums</h1>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/zookeeperHierarchicalQuorums.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/zookeeperInternals.html
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ <h4>Use of Standard slf4j Idioms</h4>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/zookeeperInternals.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/zookeeperJMX.html
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ <h2 class="h3">ZooKeeper MBean Reference</h2>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/zookeeperJMX.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/zookeeperObservers.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ <h2 class="h3">Example use cases</h2>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/zookeeperObservers.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/zookeeperOver.html
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ <h3 class="h4">The ZooKeeper Project</h3>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/zookeeperOver.pdf
Binary file not shown.
30 changes: 20 additions & 10 deletions docs/zookeeperProgrammers.html
Original file line number Diff line number Diff line change
Expand Up @@ -1307,11 +1307,14 @@ <h2 class="h3">ZooKeeper access control using ACLs</h2>
be able to read <em>/app/status</em>; ACLs are not
recursive.</p>
<p>ZooKeeper supports pluggable authentication schemes. Ids are
specified using the form <em>scheme:id</em>,
where <em>scheme</em> is a the authentication scheme
that the id corresponds to. For
example, <em>ip:172.16.16.1</em> is an id for a
host with the address <em>172.16.16.1</em>.</p>
specified using the form <em>scheme:expression</em>,
where <em>scheme</em> is the authentication scheme
that the id corresponds to. The set of valid expressions are defined
by the scheme. For example, <em>ip:172.16.16.1</em> is
an id for a host with the address <em>172.16.16.1</em>
using the <em>ip</em> scheme, whereas <em>digest:bob:password</em>
is an id for the user with the name of <em>bob</em> using
the <em>digest</em> scheme.</p>
<p>When a client connects to ZooKeeper and authenticates
itself, ZooKeeper associates all the ids that correspond to a
client with the clients connection. These ids are checked against
Expand Down Expand Up @@ -1393,9 +1396,16 @@ <h4>Builtin ACL Schemes</h4>

<li>
<p>
<strong>auth</strong> doesn't
use any id, represents any authenticated
user.</p>
<strong>auth</strong> is a special
scheme which ignores any provided expression and instead uses the current user,
credentials, and scheme. Any expression (whether <em>user</em> like with SASL
authentication or <em>user:password</em> like with DIGEST authentication) provided is ignored
by the ZooKeeper server when persisting the ACL. However, the expression must still be
provided in the ACL because the ACL must match the form <em>scheme:expression:perms</em>.
This scheme is provided as a convenience as it is a common use-case for
a user to create a znode and then restrict access to that znode to only that user.
If there is no authenticated user, setting an ACL with the auth scheme will fail.
</p>
</li>


Expand Down Expand Up @@ -2386,7 +2396,7 @@ <h2 class="h3">Gotchas: Common Problems and Troubleshooting</h2>
<p>If you are using watches, you must look for the connected watch
event. When a ZooKeeper client disconnects from a server, you will
not receive notification of changes until reconnected. If you are
watching for a znode to come into existance, you will miss the event
watching for a znode to come into existence, you will miss the event
if the znode is created and deleted while you are disconnected.</p>

</li>
Expand Down Expand Up @@ -2569,7 +2579,7 @@ <h2 class="h3">Gotchas: Common Problems and Troubleshooting</h2>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/zookeeperProgrammers.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/zookeeperQuotas.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ <h3 class="h4"> Deleting Quotas</h3>
</div>
<div class="copyright">
Copyright &copy;
2008-2013 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
<a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>
</div>
<!--+
|end bottomstrip
Expand Down
Binary file modified docs/zookeeperQuotas.pdf
Binary file not shown.