bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject [bookkeeper] branch asf-site updated: Issue 505: Remove old generated content from http://bookkeeper.apache.org/docs/ (#512)
Date Sat, 16 Sep 2017 03:55:08 GMT
This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 81fe182  Issue 505: Remove old generated content from http://bookkeeper.apache.org/docs/ (#512)
81fe182 is described below

commit 81fe18212654a5cfccbe8c3d2cc4796e47b89d04
Author: Sijie Guo <guosijie@gmail.com>
AuthorDate: Fri Sep 15 20:55:07 2017 -0700

    Issue 505: Remove old generated content from http://bookkeeper.apache.org/docs/ (#512)
    
    This closes #505
---
 content/docs/admin/autorecovery/index.html         |  663 ---------
 content/docs/admin/bookies/index.html              |  751 ----------
 content/docs/admin/geo-replication/index.html      |  533 -------
 content/docs/admin/metrics/index.html              |  594 --------
 content/docs/admin/perf/index.html                 |  511 -------
 content/docs/admin/placement/index.html            |  511 -------
 content/docs/api/distributedlog-api/index.html     |  921 ------------
 content/docs/api/ledger-api/index.html             | 1023 -------------
 content/docs/api/overview/index.html               |  523 -------
 content/docs/deployment/dcos/index.html            |  718 ---------
 content/docs/deployment/kubernetes/index.html      |  517 -------
 content/docs/deployment/manual/index.html          |  595 --------
 content/docs/development/codebase/index.html       |  511 -------
 content/docs/development/protocol/index.html       |  751 ----------
 content/docs/example/index.html                    |  511 -------
 content/docs/getting-started/concepts/index.html   |  810 -----------
 .../docs/getting-started/installation/index.html   |  650 ---------
 .../docs/getting-started/run-locally/index.html    |  522 -------
 content/docs/reference/cli/index.html              | 1516 --------------------
 content/docs/reference/config/index.html           | 1482 -------------------
 content/docs/reference/metrics/index.html          |  511 -------
 content/docs/security/index.html                   |  588 --------
 content/docs/security/sasl/index.html              |  799 -----------
 content/docs/security/tls/index.html               |  790 ----------
 content/docs/security/zookeeper/index.html         |  614 --------
 25 files changed, 17915 deletions(-)

diff --git a/content/docs/admin/autorecovery/index.html b/content/docs/admin/autorecovery/index.html
deleted file mode 100644
index ef2a735..0000000
--- a/content/docs/admin/autorecovery/index.html
+++ /dev/null
@@ -1,663 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Using AutoRecovery</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Using AutoRecovery</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>When a <span class="pop" id="bookie-popover">bookie</span> crashes, all <span class="pop" id="ledger-popover">ledgers</span> on that bookie become under-replicated. In order to bring all ledgers in your BookKeeper cluster back to full replication, you’ll need to <em>recover</em> the data from any offline bookies. There are two ways to recover bookies’ data:</p>
-
-<ol>
-  <li>Using <a href="#manual-recovery">manual recovery</a></li>
-  <li>Automatically, using <a href="#autorecovery"><em>AutoRecovery</em></a></li>
-</ol>
-
-<h2 id="manual-recovery">Manual recovery</h2>
-
-<p>You can manually recover failed bookies using the <a href="../../reference/cli"><code class="highlighter-rouge">bookkeeper</code></a> command-line tool. You need to specify:</p>
-
-<ul>
-  <li>that the <code class="highlighter-rouge">org.apache.bookkeeper.tools.BookKeeperTools</code> class needs to be run</li>
-  <li>an IP and port for your BookKeeper cluster’s ZooKeeper ensemble</li>
-  <li>the IP and port for the failed bookie</li>
-</ul>
-
-<p>Here’s an example:</p>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper org.apache.bookkeeper.tools.BookKeeperTools <span class="se">\</span>
-  zk1.example.com:2181 <span class="se">\ </span><span class="c"># IP and port for ZooKeeper</span>
-  192.168.1.10:3181      <span class="c"># IP and port for the failed bookie</span>
-</code></pre>
-</div>
-
-<p>If you wish, you can also specify which bookie you’d like to rereplicate to. Here’s an example:</p>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper org.apache.bookkeeper.tools.BookKeeperTools <span class="se">\</span>
-  zk1.example.com:2181 <span class="se">\ </span><span class="c"># IP and port for ZooKeeper</span>
-  192.168.1.10:3181 <span class="se">\ </span>   <span class="c"># IP and port for the failed bookie</span>
-  192.168.1.11:3181      <span class="c"># IP and port for the bookie to rereplicate to</span>
-</code></pre>
-</div>
-
-<h3 id="the-manual-recovery-process">The manual recovery process</h3>
-
-<p>When you initiate a manual recovery process, the following happens:</p>
-
-<ol>
-  <li>The client (the process running ) reads the metadata of active ledgers from ZooKeeper.</li>
-  <li>The ledgers that contain segments from the failed bookie in their ensemble are selected.</li>
-  <li>A recovery process is initiated for each ledger in this list and the rereplication process is run for each ledger.</li>
-  <li>Once all the ledgers are marked as fully replicated, bookie recovery is finished.</li>
-</ol>
-
-<h2 id="autorecovery">AutoRecovery</h2>
-
-<p>AutoRecovery is a process that:</p>
-
-<ul>
-  <li>automatically detects when a <span class="pop" id="bookie-popover">bookie</span> in your BookKeeper cluster has become unavailable and then</li>
-  <li>rereplicates all the <span class="pop" id="ledger-popover">ledgers</span> that were stored on that bookie.</li>
-</ul>
-
-<p>AutoRecovery can be run in two ways:</p>
-
-<ol>
-  <li>On dedicated nodes in your BookKeeper cluster</li>
-  <li>On the same machines on which your bookies are running</li>
-</ol>
-
-<h2 id="running-autorecovery">Running AutoRecovery</h2>
-
-<p>You can start up AutoRecovery using the <a href="../../reference/cli#bookkeeper-autorecovery"><code class="highlighter-rouge">autorecovery</code></a> command of the <a href="../../reference/cli"><code class="highlighter-rouge">bookkeeper</code></a> CLI tool.</p>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper autorecovery
-</code></pre>
-</div>
-
-<blockquote>
-  <p>The most important thing to ensure when starting up AutoRecovery is that the ZooKeeper connection string specified by the <a href="../../reference/config#zkServers"><code class="highlighter-rouge">zkServers</code></a> parameter points to the right ZooKeeper cluster.</p>
-</blockquote>
-
-<p>If you start up AutoRecovery on a machine that is already running a bookie, then the AutoRecovery process will run alongside the bookie on a separate thread.</p>
-
-<p>You can also start up AutoRecovery on a fresh machine if you’d like to create a dedicated cluster of AutoRecovery nodes.</p>
-
-<h2 id="configuration">Configuration</h2>
-
-<p>There are a handful of AutoRecovery-related configs in the <a href="../../reference/config"><code class="highlighter-rouge">bk_server.conf</code></a> configuration file. For a listing of those configs, see <a href="../../reference/config#autorecovery-settings">AutoRecovery settings</a>.</p>
-
-<h2 id="disable-autorecovery">Disable AutoRecovery</h2>
-
-<p>You can disable AutoRecovery at any time, for example during maintenance. Disabling AutoRecovery ensures that bookies’ data isn’t unnecessarily rereplicated when the bookie is only taken down for a short period of time, for example when the bookie is being updated or the configuration if being changed.</p>
-
-<p>You can disable AutoRecover using the <a href="../../reference/cli#bookkeeper-shell-autorecovery"><code class="highlighter-rouge">bookkeeper</code></a> CLI tool:</p>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell autorecovery -disable
-</code></pre>
-</div>
-
-<p>Once disabled, you can reenable AutoRecovery using the <a href="../../reference/cli#bookkeeper-shell-autorecovery"><code class="highlighter-rouge">enable</code></a> shell command:</p>
-
-<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell autorecovery -enable
-</code></pre>
-</div>
-
-<h2 id="autorecovery-architecture">AutoRecovery architecture</h2>
-
-<p>AutoRecovery has two components:</p>
-
-<ol>
-  <li>The <a href="#auditor"><strong>auditor</strong></a> (see the <a href="/test/content/javadoc/org/apache/bookkeeper/replication/Auditor.html"><code class="highlighter-rouge">Auditor</code></a> class) is a singleton node that watches bookies to see if they fail and creates rereplication tasks for the ledgers on failed bookies.</li>
-  <li>The <a href="#replication-worker"><strong>replication worker</strong></a> (see the <a href="/test/content/javadoc/org/apache/bookkeeper/replication/ReplicationWorker.html"><code class="highlighter-rouge">ReplicationWorker</code></a> class) runs on each bookie and executes rereplication tasks provided by the auditor.</li>
-</ol>
-
-<p>Both of these components run as threads in the <a href="/test/content/javadoc/org/apache/bookkeeper/replication/AutoRecoveryMain"><code class="highlighter-rouge">AutoRecoveryMain</code></a> process, which runs on each bookie in the cluster. All recovery nodes participate in leader election—using ZooKeeper—to decide which node becomes the auditor. Nodes that fail to become the auditor watch the elected auditor and run an election process again if they see that the auditor node has failed.</p>
-
-<h3 id="auditor">Auditor</h3>
-
-<p>The auditor watches all bookies in the cluster that are registered with ZooKeeper. Bookies register with ZooKeeper at startup. If the bookie crashes or is killed, the bookie’s registration in ZooKeeper disappears and the auditor is notified of the change in the list of registered bookies.</p>
-
-<p>When the auditor sees that a bookie has disappeared, it immediately scans the complete <span class="pop" id="ledger-popover">ledger</span> list to find ledgers that have data stored on the failed bookie. Once it has a list of ledgers for that bookie, the auditor will publish a rereplication task for each ledger under the <code class="highlighter-rouge">/underreplicated/</code> <a href="https://zookeeper.apache.org/doc/current/zookeeperOver.html">znode</a> in ZooKeeper.</p>
-
-<h3 id="replication-worker">Replication Worker</h3>
-
-<p>Each replication worker watches for tasks being published by the auditor on the <code class="highlighter-rouge">/underreplicated/</code> znode in ZooKeeper. When a new task appears, the replication worker will try to get a lock on it. If it cannot acquire the lock, it will try the next entry. The locks are implemented using ZooKeeper ephemeral znodes.</p>
-
-<p>The replication worker will scan through the rereplication task’s ledger for segments of which its local bookie is not a member. When it finds segments matching this criterion, it will replicate the entries of that segment to the local bookie. If, after this process, the ledger is fully replicated, the ledgers entry under /underreplicated/ is deleted, and the lock is released. If there is a problem replicating, or there are still segments in the ledger which are still underreplicated  [...]
-
-<p>If the replication worker finds a segment which needs rereplication, but does not have a defined endpoint (i.e. the final segment of a ledger currently being written to), it will wait for a grace period before attempting rereplication. If the segment needing rereplication still does not have a defined endpoint, the ledger is fenced and rereplication then takes place.</p>
-
-<p>This avoids the situation in which a client is writing to a ledger and one of the bookies goes down, but the client has not written an entry to that bookie before rereplication takes place. The client could continue writing to the old segment, even though the ensemble for the segment had changed. This could lead to data loss. Fencing prevents this scenario from happening. In the normal case, the client will try to write to the failed bookie within the grace period, and will have start [...]
-
-<p>You can configure this grace period using the <a href="../../reference/config#openLedgerRereplicationGracePeriod"><code class="highlighter-rouge">openLedgerRereplicationGracePeriod</code></a> parameter.</p>
-
-<h3 id="the-rereplication-process">The rereplication process</h3>
-
-<p>The ledger rereplication process happens in these steps:</p>
-
-<ol>
-  <li>The client goes through all ledger segments in the ledger, selecting those that contain the failed bookie.</li>
-  <li>A recovery process is initiated for each ledger segment in this list.
-    <ol>
-      <li>The client selects a bookie to which all entries in the ledger segment will be replicated; In the case of autorecovery, this will always be the local bookie.</li>
-      <li>The client reads entries that belong to the ledger segment from other bookies in the ensemble and writes them to the selected bookie.</li>
-      <li>Once all entries have been replicated, the zookeeper metadata for the segment is updated to reflect the new ensemble.</li>
-      <li>The segment is marked as fully replicated in the recovery tool.</li>
-    </ol>
-  </li>
-  <li>Once all ledger segments are marked as fully replicated, the ledger is marked as fully replicated.</li>
-</ol>
-
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Using AutoRecovery</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#manual-recovery">Manual recovery</a></li>
-<li class="toc-entry toc-h3"><a href="#the-manual-recovery-process">The manual recovery process</a></li>
-<li class="toc-entry toc-h2"><a href="#autorecovery">AutoRecovery</a></li>
-<li class="toc-entry toc-h2"><a href="#running-autorecovery">Running AutoRecovery</a></li>
-<li class="toc-entry toc-h2"><a href="#configuration">Configuration</a></li>
-<li class="toc-entry toc-h2"><a href="#disable-autorecovery">Disable AutoRecovery</a></li>
-<li class="toc-entry toc-h2"><a href="#autorecovery-architecture">AutoRecovery architecture</a></li>
-<li class="toc-entry toc-h3"><a href="#auditor">Auditor</a></li>
-<li class="toc-entry toc-h3"><a href="#replication-worker">Replication Worker</a></li>
-<li class="toc-entry toc-h3"><a href="#the-rereplication-process">The rereplication process</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/admin/bookies/index.html b/content/docs/admin/bookies/index.html
deleted file mode 100644
index 8908ed1..0000000
--- a/content/docs/admin/bookies/index.html
+++ /dev/null
@@ -1,751 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - BookKeeper administration</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">BookKeeper administration</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">A guide to deploying and administering BookKeeper</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>This document is a guide to deploying, administering, and maintaining BookKeeper. It also discusses <a href="#best-practices">best practices</a> and <a href="#common-problems">common problems</a>.</p>
-
-<h2 id="requirements">Requirements</h2>
-
-<p>A typical BookKeeper installation consists of an ensemble of <span class="pop" id="bookie-popover">bookies</span> and a ZooKeeper quorum. The exact number of bookies depends on the quorum mode that you choose, desired throughput, and the number of clients using the installation simultaneously.</p>
-
-<p>The minimum number of bookies depends on the type of installation:</p>
-
-<ul>
-  <li>For <em>self-verifying</em> entries you should run at least three bookies. In this mode, clients store a message authentication code along with each <span class="pop" id="entry-popover">entry</span>.</li>
-  <li>For <em>generic</em> entries you should run at least four</li>
-</ul>
-
-<p>There is no upper limit on the number of bookies that you can run in a single ensemble.</p>
-
-<h3 id="performance">Performance</h3>
-
-<p>To achieve optimal performance, BookKeeper requires each server to have at least two disks. It’s possible to run a bookie with a single disk but performance will be significantly degraded.</p>
-
-<h3 id="zookeeper">ZooKeeper</h3>
-
-<p>There is no constraint on the number of ZooKeeper nodes you can run with BookKeeper. A single machine running ZooKeeper in <a href="https://zookeeper.apache.org/doc/current/zookeeperStarted.html#sc_InstallingSingleMode">standalone mode</a> is sufficient for BookKeeper, although for the sake of higher resilience we recommend running ZooKeeper in <a href="https://zookeeper.apache.org/doc/current/zookeeperStarted.html#sc_RunningReplicatedZooKeeper">quorum mode</a> with multiple servers.</p>
-
-<h2 id="starting-and-stopping-bookies">Starting and stopping bookies</h2>
-
-<p>You can run bookies either in the foreground or in the background, using <a href="https://en.wikipedia.org/wiki/Nohup">nohup</a>. You can also run <a href="#local-bookie">local bookies</a> for development purposes.</p>
-
-<p>To start a bookie in the foreground, use the <a href="../../reference/cli#bookkeeper-bookie"><code class="highlighter-rouge">bookie</code></a> command of the <a href="../../reference/cli#bookkeeper"><code class="highlighter-rouge">bookkeeper</code></a> CLI tool:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper bookie
-</code></pre>
-</div>
-
-<p>To start a bookie in the background, use the <a href="../../reference/cli#bookkeeper-daemon.sh"><code class="highlighter-rouge">bookkeeper-daemon.sh</code></a> script and run <code class="highlighter-rouge">start bookie</code>:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper-daemon.sh start bookie
-</code></pre>
-</div>
-
-<h3 id="local-bookies">Local bookies</h3>
-
-<p>The instructions above showed you how to run bookies intended for production use. If you’d like to experiment with ensembles of bookies locally, you can use the <a href="../../reference/cli#bookkeeper-localbookie"><code class="highlighter-rouge">localbookie</code></a> command of the <code class="highlighter-rouge">bookkeeper</code> CLI tool and specify the number of bookies you’d like to run.</p>
-
-<p>This would spin up a local ensemble of 6 bookies:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper localbookie 6
-</code></pre>
-</div>
-
-<blockquote>
-  <p>When you run a local bookie ensemble, all bookies run in a single JVM process.</p>
-</blockquote>
-
-<h2 id="configuring-bookies">Configuring bookies</h2>
-
-<p>There’s a wide variety of parameters that you can set in the bookie configuration file in <code class="highlighter-rouge">bookkeeper-server/conf/bk_server.conf</code> of your <a href="../../reference/config">BookKeeper installation</a>. A full listing can be found in <a href="../../reference/config">Bookie configuration</a>.</p>
-
-<p>Some of the more important parameters to be aware of:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Parameter</th>
-      <th style="text-align: left">Description</th>
-      <th style="text-align: left">Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">bookiePort</code></td>
-      <td style="text-align: left">The TCP port that the bookie listens on</td>
-      <td style="text-align: left"><code class="highlighter-rouge">3181</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">zkServers</code></td>
-      <td style="text-align: left">A comma-separated list of ZooKeeper servers in <code class="highlighter-rouge">hostname:port</code> format</td>
-      <td style="text-align: left"><code class="highlighter-rouge">localhost:2181</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">journalDirectory</code></td>
-      <td style="text-align: left">The directory where the <a href="../../getting-started/concepts#log-device">log device</a> stores the bookie’s write-ahead log (WAL)</td>
-      <td style="text-align: left"><code class="highlighter-rouge">/tmp/bk-txn</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">ledgerDirectories</code></td>
-      <td style="text-align: left">The directories where the <a href="../../getting-started/concepts#ledger-device">ledger device</a> stores the bookie’s ledger entries (as a comma-separated list)</td>
-      <td style="text-align: left"><code class="highlighter-rouge">/tmp/bk-data</code></td>
-    </tr>
-  </tbody>
-</table>
-
-<blockquote>
-  <p>Ideally, the directories specified <code class="highlighter-rouge">journalDirectory</code> and <code class="highlighter-rouge">ledgerDirectories</code> should be on difference devices.</p>
-</blockquote>
-
-<h2 id="logging">Logging</h2>
-
-<p>BookKeeper uses <a href="http://www.slf4j.org/">slf4j</a> for logging, with <a href="https://logging.apache.org/log4j/2.x/">log4j</a> bindings enabled by default.</p>
-
-<p>To enable logging for a bookie, create a <code class="highlighter-rouge">log4j.properties</code> file and point the <code class="highlighter-rouge">BOOKIE_LOG_CONF</code> environment variable to the configuration file. Here’s an example:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span><span class="nb">export </span><span class="nv">BOOKIE_LOG_CONF</span><span class="o">=</span>/some/path/log4j.properties
-<span class="gp">$ </span>bookkeeper-server/bin/bookkeeper bookie
-</code></pre>
-</div>
-
-<h2 id="upgrading">Upgrading</h2>
-
-<p>From time to time you may need to make changes to the filesystem layout of bookies—changes that are incompatible with previous versions of BookKeeper and require that directories used with previous versions are upgraded. If a filesystem upgrade is required when updating BookKeeper, the bookie will fail to start and return an error like this:</p>
-
-<div class="highlighter-rouge"><pre class="highlight"><code>2017-05-25 10:41:50,494 - ERROR - [main:Bookie@246] - Directory layout version is less than 3, upgrade needed
-</code></pre>
-</div>
-
-<p>BookKeeper provides a utility for upgrading the filesystem. You can perform an upgrade using the <a href="../../reference/cli#bookkeeper-upgrade"><code class="highlighter-rouge">upgrade</code></a> command of the <code class="highlighter-rouge">bookkeeper</code> CLI tool. When running <code class="highlighter-rouge">bookkeeper upgrade</code> you need to specify one of three flags:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Flag</th>
-      <th style="text-align: left">Action</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">--upgrade</code></td>
-      <td style="text-align: left">Performs an upgrade</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">--rollback</code></td>
-      <td style="text-align: left">Performs a rollback to the initial filesystem version</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">--finalize</code></td>
-      <td style="text-align: left">Marks the upgrade as complete</td>
-    </tr>
-  </tbody>
-</table>
-
-<h3 id="upgrade-pattern">Upgrade pattern</h3>
-
-<p>A standard upgrade pattern is to run an upgrade…</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper upgrade --upgrade
-</code></pre>
-</div>
-
-<p>…then check that everything is working normally, then kill the bookie. If everything is okay, finalize the upgrade…</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper upgrade --finalize
-</code></pre>
-</div>
-
-<p>…and then restart the server:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper bookie
-</code></pre>
-</div>
-
-<p>If something has gone wrong, you can always perform a rollback:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper upgrade --rollback
-</code></pre>
-</div>
-
-<h2 id="formatting">Formatting</h2>
-
-<p>You can format bookie metadata in ZooKeeper using the <a href="../../reference/cli#bookkeeper-shell-metaformat"><code class="highlighter-rouge">metaformat</code></a> command of the <a href="../../reference/cli#the-bookkeeper-shell">BookKeeper shell</a>.</p>
-
-<p>By default, formatting is done in interactive mode, which prompts you to confirm the format operation if old data exists. You can disable confirmation using the <code class="highlighter-rouge">-nonInteractive</code> flag. If old data does exist, the format operation will abort <em>unless</em> you set the <code class="highlighter-rouge">-force</code> flag. Here’s an example:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell metaformat
-</code></pre>
-</div>
-
-<p>You can format the local filesystem data on a bookie using the <a href="../../reference/cli#bookkeeper-shell-bookieformat"><code class="highlighter-rouge">bookieformat</code></a> command on each bookie. Here’s an example:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell bookieformat
-</code></pre>
-</div>
-
-<blockquote>
-  <p>The <code class="highlighter-rouge">-force</code> and <code class="highlighter-rouge">-nonInteractive</code> flags are also available for the <code class="highlighter-rouge">bookieformat</code> command.</p>
-</blockquote>
-
-<h2 id="autorecovery">AutoRecovery</h2>
-
-<p>For a guide to AutoRecovery in BookKeeper, see <a href="../autorecovery">this doc</a>.</p>
-
-<h2 id="missing-disks-or-directories">Missing disks or directories</h2>
-
-<p>Accidentally replacing disks or removing directories can cause a bookie to fail while trying to read a ledger fragment that, according to the ledger metadata, exists on the bookie. For this reason, when a bookie is started for the first time, its disk configuration is fixed for the lifetime of that bookie. Any change to its disk configuration, such as a crashed disk or an accidental configuration change, will result in the bookie being unable to start. That will throw an error like this:</p>
-
-<div class="highlighter-rouge"><pre class="highlight"><code>2017-05-29 18:19:13,790 - ERROR - [main:BookieServer314] – Exception running bookie server : @
-org.apache.bookkeeper.bookie.BookieException$InvalidCookieException
-.......at org.apache.bookkeeper.bookie.Cookie.verify(Cookie.java:82)
-.......at org.apache.bookkeeper.bookie.Bookie.checkEnvironment(Bookie.java:275)
-.......at org.apache.bookkeeper.bookie.Bookie.&lt;init&gt;(Bookie.java:351)
-</code></pre>
-</div>
-
-<p>If the change was the result of an accidental configuration change, the change can be reverted and the bookie can be restarted. However, if the change <em>cannot</em> be reverted, such as is the case when you want to add a new disk or replace a disk, the bookie must be wiped and then all its data re-replicated onto it.</p>
-
-<ol>
-  <li>Increment the <a href="../../reference/config#bookiePort"><code class="highlighter-rouge">bookiePort</code></a> parameter in the <a href="../../reference/config"><code class="highlighter-rouge">bk_server.conf</code></a></li>
-  <li>Ensure that all directories specified by <a href="../../reference/config#journalDirectory"><code class="highlighter-rouge">journalDirectory</code></a> and <a href="../../reference/config#ledgerDirectories"><code class="highlighter-rouge">ledgerDirectories</code></a> are empty.</li>
-  <li><a href="#starting-and-stopping-bookies">Start the bookie</a>.</li>
-  <li>
-    <p>Run the following command to re-replicate the data:</p>
-
-    <div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bin/bookkeeper org.apache.bookkeeper.tools.BookKeeperTools <span class="se">\</span>
-  &lt;zkserver&gt; <span class="se">\</span>
-  &lt;oldbookie&gt; <span class="se">\</span>
-  &lt;newbookie&gt;
-</code></pre>
-    </div>
-
-    <p>The ZooKeeper server, old bookie, and new bookie, are all identified by their external IP and <code class="highlighter-rouge">bookiePort</code> (3181 by default). Here’s an example:</p>
-
-    <div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bin/bookkeeper org.apache.bookkeeper.tools.BookKeeperTools <span class="se">\</span>
-  zk1.example.com <span class="se">\</span>
-  192.168.1.10:3181 <span class="se">\</span>
-  192.168.1.10:3181
-</code></pre>
-    </div>
-
-    <p>See the <a href="../autorecovery">AutoRecovery</a> documentation for more info on the re-replication process.</p>
-  </li>
-</ol>
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">BookKeeper administration</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#requirements">Requirements</a></li>
-<li class="toc-entry toc-h3"><a href="#performance">Performance</a></li>
-<li class="toc-entry toc-h3"><a href="#zookeeper">ZooKeeper</a></li>
-<li class="toc-entry toc-h2"><a href="#starting-and-stopping-bookies">Starting and stopping bookies</a></li>
-<li class="toc-entry toc-h3"><a href="#local-bookies">Local bookies</a></li>
-<li class="toc-entry toc-h2"><a href="#configuring-bookies">Configuring bookies</a></li>
-<li class="toc-entry toc-h2"><a href="#logging">Logging</a></li>
-<li class="toc-entry toc-h2"><a href="#upgrading">Upgrading</a></li>
-<li class="toc-entry toc-h3"><a href="#upgrade-pattern">Upgrade pattern</a></li>
-<li class="toc-entry toc-h2"><a href="#formatting">Formatting</a></li>
-<li class="toc-entry toc-h2"><a href="#autorecovery">AutoRecovery</a></li>
-<li class="toc-entry toc-h2"><a href="#missing-disks-or-directories">Missing disks or directories</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/admin/geo-replication/index.html b/content/docs/admin/geo-replication/index.html
deleted file mode 100644
index 190db57..0000000
--- a/content/docs/admin/geo-replication/index.html
+++ /dev/null
@@ -1,533 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Geo-replication</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Geo-replication</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">Replicate data across BookKeeper clusters</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p><em>Geo-replication</em> is the replication of data across BookKeeper clusters. In order to enable geo-replication for a group of BookKeeper clusters,</p>
-
-<h2 id="global-zookeeper">Global ZooKeeper</h2>
-
-<p>Setting up a global ZooKeeper quorum is a lot like setting up a cluster-specific quorum. The crucial difference is that</p>
-
-<h3 id="geo-replication-across-three-clusters">Geo-replication across three clusters</h3>
-
-<p>Let’s say that you want to set up geo-replication across clusters in regions A, B, and C. First, the BookKeeper clusters in each region must have their own local (cluster-specific) ZooKeeper quorum.</p>
-
-<blockquote>
-  <p>BookKeeper clusters use global ZooKeeper only for metadata storage. Traffic from bookies to ZooKeeper should thus be fairly light in general.</p>
-</blockquote>
-
-<p>The crucial difference between using cluster-specific ZooKeeper and global ZooKeeper is that <span class="pop" id="bookie-popover">bookies</span> is that you need to point all bookies to use the global ZooKeeper setup.</p>
-
-<h2 id="region-aware-placement-polocy">Region-aware placement polocy</h2>
-
-<h2 id="autorecovery">Autorecovery</h2>
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Geo-replication</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#global-zookeeper">Global ZooKeeper</a></li>
-<li class="toc-entry toc-h3"><a href="#geo-replication-across-three-clusters">Geo-replication across three clusters</a></li>
-<li class="toc-entry toc-h2"><a href="#region-aware-placement-polocy">Region-aware placement polocy</a></li>
-<li class="toc-entry toc-h2"><a href="#autorecovery">Autorecovery</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/admin/metrics/index.html b/content/docs/admin/metrics/index.html
deleted file mode 100644
index 6e19492..0000000
--- a/content/docs/admin/metrics/index.html
+++ /dev/null
@@ -1,594 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Metric collection</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Metric collection</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>BookKeeper enables metrics collection through a variety of <a href="#stats-providers">stats providers</a>.</p>
-
-<blockquote>
-  <p>For a full listing of available metrics, see the <a href="../../reference/metrics">Metrics</a> reference doc.</p>
-</blockquote>
-
-<h2 id="stats-providers">Stats providers</h2>
-
-<p>BookKeeper has stats provider implementations for four five sinks:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Provider</th>
-      <th style="text-align: left">Provider class name</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left"><a href="https://mvnrepository.com/artifact/org.apache.bookkeeper.stats/codahale-metrics-provider">Codahale Metrics</a></td>
-      <td style="text-align: left"><code class="highlighter-rouge">org.apache.bookkeeper.stats.CodahaleMetricsProvider</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><a href="https://prometheus.io/">Prometheus</a></td>
-      <td style="text-align: left"><code class="highlighter-rouge">org.apache.bookkeeper.stats.PrometheusMetricsProvider</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><a href="https://twitter.github.io/finagle/guide/Metrics.html">Finagle</a></td>
-      <td style="text-align: left"><code class="highlighter-rouge">org.apache.bookkeeper.stats.FinagleStatsProvider</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><a href="https://github.com/twitter/ostrich">Ostrich</a></td>
-      <td style="text-align: left"><code class="highlighter-rouge">org.apache.bookkeeper.stats.OstrichProvider</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><a href="https://mvnrepository.com/artifact/org.apache.bookkeeper.stats/twitter-science-provider">Twitter Science Provider</a></td>
-      <td style="text-align: left"><code class="highlighter-rouge">org.apache.bookkeeper.stats.TwitterStatsProvider</code></td>
-    </tr>
-  </tbody>
-</table>
-
-<blockquote>
-  <p>The <a href="https://github.com/apache/bookkeeper/tree/master/bookkeeper-stats-providers/codahale-metrics-provider">Codahale Metrics</a> stats provider is the default provider.</p>
-</blockquote>
-
-<h2 id="enabling-stats-providers-in-bookies">Enabling stats providers in bookies</h2>
-
-<p>There are two stats-related <a href="../../reference/config#statistics">configuration parameters</a> available for bookies:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Parameter</th>
-      <th style="text-align: left">Description</th>
-      <th style="text-align: left">Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">enableStatistics</code></td>
-      <td style="text-align: left">Whether statistics are enabled for the bookie</td>
-      <td style="text-align: left"><code class="highlighter-rouge">false</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">statsProviderClass</code></td>
-      <td style="text-align: left">The stats provider class used by the bookie</td>
-      <td style="text-align: left"><code class="highlighter-rouge">org.apache.bookkeeper.stats.CodahaleMetricsProvider</code></td>
-    </tr>
-  </tbody>
-</table>
-
-<p>To enable stats:</p>
-
-<ul>
-  <li>set the <code class="highlighter-rouge">enableStatistics</code> parameter to <code class="highlighter-rouge">true</code></li>
-  <li>set <code class="highlighter-rouge">statsProviderClass</code> to the desired provider (see the <a href="#stats-providers">table above</a> for a listing of classes)</li>
-</ul>
-
-<!-- ## Enabling stats in the bookkeeper library
-
-TODO
--->
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Metric collection</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#stats-providers">Stats providers</a></li>
-<li class="toc-entry toc-h2"><a href="#enabling-stats-providers-in-bookies">Enabling stats providers in bookies</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/admin/perf/index.html b/content/docs/admin/perf/index.html
deleted file mode 100644
index 210804a..0000000
--- a/content/docs/admin/perf/index.html
+++ /dev/null
@@ -1,511 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Performance tuning</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Performance tuning</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Performance tuning</h2>
-  <ul class="section-nav">
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/admin/placement/index.html b/content/docs/admin/placement/index.html
deleted file mode 100644
index b578f64..0000000
--- a/content/docs/admin/placement/index.html
+++ /dev/null
@@ -1,511 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Customized placement policies</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Customized placement policies</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Customized placement policies</h2>
-  <ul class="section-nav">
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/api/distributedlog-api/index.html b/content/docs/api/distributedlog-api/index.html
deleted file mode 100644
index fbf6308..0000000
--- a/content/docs/api/distributedlog-api/index.html
+++ /dev/null
@@ -1,921 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - DistributedLog</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">DistributedLog</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">A higher-level API for managing BookKeeper entries</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <blockquote>
-  <p>DistributedLog began its life as a separate project under the Apache Foundation. It was merged into BookKeeper in 2017.</p>
-</blockquote>
-
-<p>The DistributedLog API is an easy-to-use interface for managing BookKeeper entries that enables you to use BookKeeper without needing to interact with <a href="../ledger-api">ledgers</a> directly.</p>
-
-<p>DistributedLog (DL) maintains sequences of records in categories called <em>logs</em> (aka <em>log streams</em>). <em>Writers</em> append records to DL logs, while <em>readers</em> fetch and process those records.</p>
-
-<h2 id="architecture">Architecture</h2>
-
-<p>The diagram below illustrates how the DistributedLog API works with BookKeeper:</p>
-
-<p><img src="/test/content/img/distributedlog.png" alt="DistributedLog API" /></p>
-
-<h2 id="logs">Logs</h2>
-
-<p>A <em>log</em> in DistributedLog is an ordered, immutable sequence of <em>log records</em>.</p>
-
-<p>The diagram below illustrates the anatomy of a log stream:</p>
-
-<p><img src="/test/content/img/logs.png" alt="DistributedLog log" /></p>
-
-<h3 id="log-records">Log records</h3>
-
-<p>Each log record is a sequence of bytes. Applications are responsible for serializing and deserializing byte sequences stored in log records.</p>
-
-<p>Log records are written sequentially into a <em>log stream</em> and assigned with a a unique sequence number called a DLSN (<strong>D</strong>istributed<strong>L</strong>og <strong>S</strong>equence <strong>N</strong>umber).</p>
-
-<p>In addition to a DLSN, applications can assign their own sequence number when constructing log records. Application-defined sequence numbers are known as <em>TransactionIDs</em> (or <em>txid</em>). Either a DLSN or a TransactionID can be used for positioning readers to start reading from a specific log record.</p>
-
-<h3 id="log-segments">Log segments</h3>
-
-<p>Each log is broken down into <em>log segments</em> that contain subsets of records. Log segments are distributed and stored in BookKeeper. DistributedLog rolls the log segments based on the configured <em>rolling policy</em>, which be either</p>
-
-<ul>
-  <li>a configurable period of time (such as every 2 hours), or</li>
-  <li>a configurable maximum size (such as every 128 MB).</li>
-</ul>
-
-<p>The data in logs is divided up into equally sized log segments and distributed evenly across <span class="pop" id="bookie-popover">bookies</span>. This allows logs to scale beyond a size that would fit on a single server and spreads read traffic across the cluster.</p>
-
-<h3 id="namespaces">Namespaces</h3>
-
-<p>Log streams that belong to the same organization are typically categorized and managed under a <em>namespace</em>. DistributedLog namespaces essentially enable applications to locate log streams. Applications can perform the following actions under a namespace:</p>
-
-<ul>
-  <li>create streams</li>
-  <li>delete streams</li>
-  <li>truncate streams to a given sequence number (either a DLSN or a TransactionID)</li>
-</ul>
-
-<h2 id="writers">Writers</h2>
-
-<p>Through the DistributedLog API, writers write data into logs of their choice. All records are appended into logs in order. The sequencing is performed by the writer, which means that there is only one active writer for a log at any given time.</p>
-
-<p>DistributedLog guarantees correctness when two writers attempt to write to the same log when a network partition occurs using a <em>fencing</em> mechanism in the log segment store.</p>
-
-<h3 id="write-proxy">Write Proxy</h3>
-
-<p>Log writers are served and managed in a service tier called the <em>Write Proxy</em> (see the diagram <a href="#architecture">above</a>). The Write Proxy is used for accepting writes from a large number of clients.</p>
-
-<h2 id="readers">Readers</h2>
-
-<p>DistributedLog readers read records from logs of their choice, starting with a provided position. The provided position can be either a DLSN or a TransactionID.</p>
-
-<p>Readers read records from logs in strict order. Different readers can read records from different positions in the same log.</p>
-
-<p>Unlike other pub-sub systems, DistributedLog doesn’t record or manage readers’ positions. This means that tracking is the responsibility of applications, as different applications may have different requirements for tracking and coordinating positions. This is hard to get right with a single approach. Distributed databases, for example, might store reader positions along with SSTables, so they would resume applying transactions from the positions store in SSTables. Tracking reader pos [...]
-
-<h3 id="read-proxy">Read Proxy</h3>
-
-<p>Log records can be cached in a service tier called the <em>Read Proxy</em> to serve a large number of readers. See the diagram <a href="#architecture">above</a>. The Read Proxy is the analogue of the <a href="#write-proxy">Write Proxy</a>.</p>
-
-<h2 id="guarantees">Guarantees</h2>
-
-<p>The DistributedLog API for BookKeeper provides a number of guarantees for applications:</p>
-
-<ul>
-  <li>Records written by a <a href="#writers">writer</a> to a <a href="#logs">log</a> are appended in the order in which they are written. If a record <strong>R1</strong> is written by the same writer as a record <strong>R2</strong>, <strong>R1</strong> will have a smaller sequence number than <strong>R2</strong>.</li>
-  <li><a href="#readers">Readers</a> see <a href="#log-records">records</a> in the same order in which they are <a href="#writers">written</a> to the log.</li>
-  <li>All records are persisted on disk by BookKeeper before acknowledgements, which guarantees durability.</li>
-  <li>For a log with a replication factor of N, DistributedLog tolerates up to N-1 server failures without losing any records.</li>
-</ul>
-
-<h2 id="api">API</h2>
-
-<p>Documentation for the DistributedLog API can be found <a href="https://distributedlog.incubator.apache.org/docs/latest/user_guide/api/core">here</a>.</p>
-
-<blockquote>
-  <p>At a later date, the DistributedLog API docs will be added here.</p>
-</blockquote>
-
-<!--
-
-The DistributedLog core library is written in Java and interacts with namespaces and logs directly.
-
-### Installation
-
-The BookKeeper Java client library is available via [Maven Central](http://search.maven.org/) and can be installed using [Maven](#maven), [Gradle](#gradle), and other build tools.
-
-### Maven
-
-If you're using [Maven](https://maven.apache.org/), add this to your [`pom.xml`](https://maven.apache.org/guides/introduction/introduction-to-the-pom.html) build configuration file:
-
-```xml
-<-- in your <properties> block ->
-<bookkeeper.version>2.1.0-0.4.0</bookkeeper.version>
-
-<-- in your <dependencies> block ->
-<dependency>
-  <groupId>org.apache.bookkeeper</groupId>
-  <artifactId>bookkeeper-server</artifactId>
-  <version>${bookkeeper.version}</version>
-</dependency>
-```
-
-### Gradle
-
-If you're using [Gradle](https://gradle.org/), add this to your [`build.gradle`](https://spring.io/guides/gs/gradle/) build configuration file:
-
-```groovy
-dependencies {
-    compile group: 'org.apache.bookkeeper', name: 'bookkeeper-server', version: '4.5.0'
-}
-
-// Alternatively:
-dependencies {
-    compile 'org.apache.bookkeeper:bookkeeper-server:4.5.0'
-}
-```
-
-### Namespace API
-
-A DL [namespace](#namespace) is a collection of [log streams](#log-streams). When using the DistributedLog API with BookKeeper, you need to provide your Java client with a namespace URI. That URI consists of three elements:
-
-1. The `distributedlog-bk` scheme
-1. A connection string for your BookKeeper cluster. You have three options for the connection string:
-   * An entire ZooKeeper connection string, for example `zk1:2181,zk2:2181,zk3:2181`
-   * A host and port for one node in your ZooKeeper cluster, for example `zk1:2181`. In general, it's better to provide a full ZooKeeper connection string.
-   * If your ZooKeeper cluster can be discovered via DNS, you can provide the DNS name, for example `my-zookeeper-cluster.com`.
-1. A path that points to the location where logs are stored. This could be a ZooKeeper [znode](https://zookeeper.apache.org/doc/current/zookeeperOver.html).
-  
-This is the general structure of a namespace URI:
-
-```shell
-distributedlog-bk://{connection-string}/{path}
-```
-
-Here are some example URIs:
-
-```shell
-distributedlog-bk://zk1:2181,zk2:2181,zk3:2181/my-namespace # Full ZooKeeper connection string
-distributedlog-bk://localhost:2181/my-namespace             # Single ZooKeeper node
-distributedlog-bk://my-zookeeper-cluster.com/my-namespace   # DNS name for ZooKeeper
-```
-
-#### Creating namespaces
-
-In order to create namespaces, you need to use the command-line tool.
-
-```shell
-$ 
-```
-
-#### Using namespaces
-
-Once you have a namespace URI, you can build a namespace instance, which will be used for operating streams. Use the `DistributedLogNamespaceBuilder` to build a `DistributedLogNamespace` object, passing in a `DistributedLogConfiguration`, a URI, and optionally a stats logger and a feature provider.
-
-```java
-DistributedLogConfiguration conf = new DistributedLogConfiguration();
-URI uri = URI.create("distributedlog-bk://localhost:2181/my-namespace ");
-DistributedLogNamespaceBuilder builder = DistributedLogNamespaceBuilder.newBuilder();
-DistributedLogNamespace = builder
-        .conf(conf)           // Configuration for the namespace
-        .uri(uri)             // URI for the namespace
-        .statsLogger(...)     // Stats logger for statistics
-        .featureProvider(...) // Feature provider for controlling features
-        .build();
-```
-
-### Log API
-
-#### Creating logs
-
-You can create a log by calling the `createLog` method on a `DistributedLogNamespace` object, passing in a name for the log. This creates the log under the namespace but does *not* return a handle for operating the log.
-
-```java
-DistributedLogNamespace namespace = /* Create namespace */;
-try {
-    namespace.createLog("test-log");
-} catch (IOException e) }
-    // Handle the log creation exception
-}
-```
-
-#### Opening logs
-
-A `DistributedLogManager` handle will be returned when opening a log using the `openLog` function, which takes the name of the log. This handle can be used for writing records to or reading records from the log.
-
-> If the log doesn't exist and `createStreamIfNotExists` is set to `true` in the configuration, the log will be created automatically when writing the first record.
-
-```java
-DistributedLogConfiguration conf = new DistributedLogConfiguration();
-conf.setCreateStreamIfNotExists(true);
-DistributedLogNamespace namespace = DistributedLogNamespace.newBuilder()
-        .conf(conf)
-        // Other builder attributes
-        .build();
-DistributedLogManager logManager = namespace.openLog("test-log");
-```
-
-Sometimes, applications may open a log with a different configuration from the enclosing namespace. This can be done using the same `openLog` method:
-
-```java
-// Namespace configuration
-DistributedLogConfiguration namespaceConf = new DistributedLogConfiguration();
-conf.setRetentionPeriodHours(24);
-URI uri = URI.create("distributedlog-bk://localhost:2181/my-namespace");
-DistributedLogNamespace namespace = DistributedLogNamespace.newBuilder()
-        .conf(namespaceConf)
-        .uri(uri)
-        // Other builder attributes
-        .build();
-// Log-specific configuration
-DistributedLogConfiguration logConf = new DistributedLogConfiguration();
-logConf.setRetentionPeriodHours(12);
-DistributedLogManager logManager = namespace.openLog(
-        "test-log",
-        Optional.of(logConf),
-        Optional.absent()
-);
-```
-
-#### Deleting logs
-
-The `DistributedLogNamespace` class provides `deleteLog` function that can be used to delete logs. When you delete a lot, the client library will attempt to acquire a lock on the log before deletion. If the log is being written to by an active writer, deletion will fail (as the other writer currently holds the lock).
-
-```java
-try {
-    namespace.deleteLog("test-log");
-} catch (IOException e) {
-    // Handle exception
-}
-```
-
-#### Checking for the existence of a log
-
-Applications can check whether a log exists by calling the `logExists` function.
-
-```java
-if (namespace.logExists("test-log")) {
-  // Perform some action when the log exists
-} else {
-  // Perform some action when the log doesn't exist
-}
-```
-
-#### Listing logs
-
-Applications can retrieve a list of all logs under a namespace using the `getLogs` function.
-
-```java
-Iterator<String> logs = namespace.getLogs();
-while (logs.hasNext()) {
-  String logName = logs.next();
-  // Do something with the log name, such as print
-}
-```
-
-### Writer API
-
-You can write to DistributedLog logs either [synchronously](#writing-to-logs-synchronously) using the `LogWriter` class or [asynchronously](#writing-to-logs-asynchronously) using the `AsyncLogWriter` class.
-
-#### Immediate flush
-
-By default, records are buffered rather than being written immediately. You can disable this behavior and make DL writers write ("flush") entries immediately by adding the following to your configuration object:
-
-```java
-conf.setImmediateFlushEnabled(true);
-conf.setOutputBufferSize(0);
-conf.setPeriodicFlushFrequencyMilliSeconds(0);
-```
-
-#### Immediate locking
-
-By default, DL writers can write to a log stream when other writers are also writing to that stream. You can override this behavior and disable other writers from writing to the stream by adding this to your configuration:
-
-```java
-conf.setLockTimeout(DistributedLogConstants.LOCK_IMMEDIATE);
-```
-
-#### Writing to logs synchronously
-
-To write records to a log synchronously, you need to instantiate a `LogWriter` object using a `DistributedLogManager`. Here's an example:
-
-```java
-DistributedLogNamespace namespace = /* Some namespace object */;
-DistributedLogManager logManager = namespace.openLog("test-log");
-LogWriter writer = logManager.startLogSegmentNonPartitioned();
-```
-
-> The DistributedLog library enforces single-writer semantics by deploying a ZooKeeper locking mechanism. If there is only one active writer, subsequent calls to `startLogSegmentNonPartitioned` will fail with an `OwnershipAcquireFailedException`.
-
-Log records represent the data written to a log stream. Each log record is associated with an application-defined [TransactionID](#log-records). This ID must be non decreasing or else writing a record will be rejected with `TransactionIdOutOfOrderException`. The application is allowed to bypass the TransactionID sanity checking by setting `maxIdSanityCheck` to `false` in the configuration. System time and atomic numbers are good candidates for TransactionID.
-
-```java
-long txid = 1L;
-byte[] data = "some byte array".getBytes();
-LogRecord record = new LogRecord(txid, data);
-```
-
-Your application can write either a single record, using the `write` method, or many records, using the `writeBulk` method.
-
-```java
-// Single record
-writer.write(record);
-
-// Bulk write
-List<LogRecord> records = Lists.newArrayList();
-records.add(record);
-writer.writeBulk(records);
-```
-
-The write calls return immediately after the records are added into the output buffer of writer. This means that the data isn't guaranteed to be durable until the writer explicitly calls `setReadyToFlush` and `flushAndSync`. Those two calls will first transmit buffered data to the backend, wait for transmit acknowledgements (acks), and commit the written data to make them visible to readers.
-
-```java
-// Flush the records
-writer.setReadyToFlush();
-
-// Commit the records to make them visible to readers
-writer.flushAndSync();
-```
-
-Log streams in DistributedLog are endless streams *unless they are sealed*. Endless in this case means that writers can keep writing records to those streams, readers can keep reading from the end of those streams, and the process never stops. Your application can seal a log stream using the `markEndOfStream` method:
-
-```java
-writer.markEndOfStream();
-```
-
-#### Writing to logs asynchronously
-
-In order to write to DistributedLog logs asynchronously, you need to create an `AsyncLogWriter` instread of a `LogWriter`.
-
-```java
-DistributedLogNamespace namespace = /* Some namespace object */;
-DistributedLogManager logManager = namespace.openLog("test-async-log");
-AsyncLogWriter asyncWriter = logManager.startAsyncLogSegmentNonPartitioned();
-```
-
-All writes to `AsyncLogWriter` are non partitioned. The futures representing write results are only satisfied when the data is durably persisted in the stream. A [DLSN](#log-records) will be returned for each write, which is used to represent the position (aka offset) of the record in the log stream. All the records added in order are guaranteed to be persisted in order. Here's an example of an async writer that gathers a list of futures representing multiple async write results:
-
-```java
-List<Future<DLSN>> addFutures = Lists.newArrayList();
-for (long txid = 1L; txid <= 100L; txid++) {
-    byte[] data = /* some byte array */;
-    LogRecord record = new LogRecord(txid, data);
-    addFutures.add(asyncWriter.write(record));
-}
-List<DLSN> addResults = Await.result(Future.collect(addFutures));
-```
-
-The `AsyncLogWriter` also provides a method for truncating a stream to a given DLSN. This is useful for building replicated state machines that need explicit controls on when the data can be deleted.
-
-```java
-DLSN truncateDLSN = /* some DLSN */;
-Future<DLSN> truncateFuture = asyncWriter.truncate(truncateDLSN);
-
-// Wait for truncation result
-Await.result(truncateFuture);
-```
-
-##### Register a listener
-
-Instead of returning a future from write operations, you can also set up a listener that performs assigned actions upon success or failure of the write. Here's an example:
-
-```java
-asyncWriter.addEventListener(new FutureEventListener<DLSN>() {
-    @Override
-    public void onFailure(Throwable cause) {
-        // Execute if the attempt fails
-    }
-
-    @Override
-    public void onSuccess(DLSN value) {
-        // Execute if the attempt succeeds
-    }
-});
-```
-
-##### Close the writer
-
-You can close an async writer when you're finished with it like this:
-
-```java
-FutureUtils.result(asyncWriter.asyncClose());
-```
-
-<!--
-TODO: Reader API
--->
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">DistributedLog</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#architecture">Architecture</a></li>
-<li class="toc-entry toc-h2"><a href="#logs">Logs</a></li>
-<li class="toc-entry toc-h3"><a href="#log-records">Log records</a></li>
-<li class="toc-entry toc-h3"><a href="#log-segments">Log segments</a></li>
-<li class="toc-entry toc-h3"><a href="#namespaces">Namespaces</a></li>
-<li class="toc-entry toc-h2"><a href="#writers">Writers</a></li>
-<li class="toc-entry toc-h3"><a href="#write-proxy">Write Proxy</a></li>
-<li class="toc-entry toc-h2"><a href="#readers">Readers</a></li>
-<li class="toc-entry toc-h3"><a href="#read-proxy">Read Proxy</a></li>
-<li class="toc-entry toc-h2"><a href="#guarantees">Guarantees</a></li>
-<li class="toc-entry toc-h2"><a href="#api">API</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/api/ledger-api/index.html b/content/docs/api/ledger-api/index.html
deleted file mode 100644
index 8780d26..0000000
--- a/content/docs/api/ledger-api/index.html
+++ /dev/null
@@ -1,1023 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - The Ledger API</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">The Ledger API</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>The ledger API is a lower-level API for BookKeeper that enables you to interact with <span class="pop" id="ledger-popover">ledgers</span> directly.</p>
-
-<h2 id="the-java-ledger-api-client">The Java ledger API client</h2>
-
-<p>To get started with the Java client for BookKeeper, install the <code class="highlighter-rouge">bookkeeper-server</code> library as a dependency in your Java application.</p>
-
-<blockquote>
-  <p>For a more in-depth tutorial that involves a real use case for BookKeeper, see the <a href="../example-application">Example application</a> guide.</p>
-</blockquote>
-
-<h2 id="installation">Installation</h2>
-
-<p>The BookKeeper Java client library is available via <a href="http://search.maven.org/">Maven Central</a> and can be installed using <a href="#maven">Maven</a>, <a href="#gradle">Gradle</a>, and other build tools.</p>
-
-<h3 id="maven">Maven</h3>
-
-<p>If you’re using <a href="https://maven.apache.org/">Maven</a>, add this to your <a href="https://maven.apache.org/guides/introduction/introduction-to-the-pom.html"><code class="highlighter-rouge">pom.xml</code></a> build configuration file:</p>
-
-<div class="language-xml highlighter-rouge"><pre class="highlight"><code><span class="c">&lt;!-- in your &lt;properties&gt; block --&gt;</span>
-<span class="nt">&lt;bookkeeper.version&gt;</span>4.5.0<span class="nt">&lt;/bookkeeper.version&gt;</span>
-
-<span class="c">&lt;!-- in your &lt;dependencies&gt; block --&gt;</span>
-<span class="nt">&lt;dependency&gt;</span>
-  <span class="nt">&lt;groupId&gt;</span>org.apache.bookkeeper<span class="nt">&lt;/groupId&gt;</span>
-  <span class="nt">&lt;artifactId&gt;</span>bookkeeper-server<span class="nt">&lt;/artifactId&gt;</span>
-  <span class="nt">&lt;version&gt;</span>${bookkeeper.version}<span class="nt">&lt;/version&gt;</span>
-<span class="nt">&lt;/dependency&gt;</span>
-</code></pre>
-</div>
-
-<h3 id="gradle">Gradle</h3>
-
-<p>If you’re using <a href="https://gradle.org/">Gradle</a>, add this to your <a href="https://spring.io/guides/gs/gradle/"><code class="highlighter-rouge">build.gradle</code></a> build configuration file:</p>
-
-<div class="language-groovy highlighter-rouge"><pre class="highlight"><code><span class="n">dependencies</span> <span class="o">{</span>
-    <span class="n">compile</span> <span class="nl">group:</span> <span class="s1">'org.apache.bookkeeper'</span><span class="o">,</span> <span class="nl">name:</span> <span class="s1">'bookkeeper-server'</span><span class="o">,</span> <span class="nl">version:</span> <span class="s1">'4.5.0'</span>
-<span class="o">}</span>
-
-<span class="c1">// Alternatively:</span>
-<span class="n">dependencies</span> <span class="o">{</span>
-    <span class="n">compile</span> <span class="s1">'org.apache.bookkeeper:bookkeeper-server:4.5.0'</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-<h2 id="connection-string">Connection string</h2>
-
-<p>When interacting with BookKeeper using the Java client, you need to provide your client with a connection string, for which you have three options:</p>
-
-<ul>
-  <li>Provide your entire ZooKeeper connection string, for example <code class="highlighter-rouge">zk1:2181,zk2:2181,zk3:2181</code>.</li>
-  <li>Provide a host and port for one node in your ZooKeeper cluster, for example <code class="highlighter-rouge">zk1:2181</code>. In general, it’s better to provide a full connection string (in case the ZooKeeper node you attempt to connect to is down).</li>
-  <li>If your ZooKeeper cluster can be discovered via DNS, you can provide the DNS name, for example <code class="highlighter-rouge">my-zookeeper-cluster.com</code>.</li>
-</ul>
-
-<h2 id="creating-a-new-client">Creating a new client</h2>
-
-<p>In order to create a new <a href="/javadoc/org/apache/bookkeeper/client/BookKeeper"><code class="highlighter-rouge">BookKeeper</code></a> client object, you need to pass in a <a href="#connection-string">connection string</a>. Here is an example client object using a ZooKeeper connection string:</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="k">try</span> <span class="o">{</span>
-    <span class="n">String</span> <span class="n">connectionString</span> <span class="o">=</span> <span class="s">"127.0.0.1:2181"</span><span class="o">;</span> <span class="c1">// For a single-node, local ZooKeeper cluster</span>
-    <span class="n">BookKeeper</span> <span class="n">bkClient</span> <span class="o">=</span> <span class="k">new</span> <span class="n">BookKeeper</span><span class="o">(</span><span class="n">connectionString</span><span class="o">);</span>
-<span class="o">}</span> <span class="k">catch</span> <span class="o">(</span><span class="n">InterruptedException</span> <span class="o">|</span> <span class="n">IOException</span> <span class="o">|</span> <span class="n">KeeperException</span> <span class="n">e</span><span class="o">)</span> <span class="o">{</span>
-    <span class="n">e</span><span class="o">.</span><span class="na">printStackTrace</span><span class="o">();</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-<blockquote>
-  <p>If you’re running BookKeeper <a href="../../getting-started/run-locally">locally</a>, using the <a href="../../reference/cli#bookkeeper-localbookie"><code class="highlighter-rouge">localbookie</code></a> command, use <code class="highlighter-rouge">"127.0.0.1:2181"</code> for your connection string, as in the example above.</p>
-</blockquote>
-
-<p>There are, however, other ways that you can create a client object:</p>
-
-<ul>
-  <li>
-    <p>By passing in a <a href="/javadoc/org/apache/bookkeeper/conf/ClientConfiguration"><code class="highlighter-rouge">ClientConfiguration</code></a> object. Here’s an example:</p>
-
-    <div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="n">ClientConfiguration</span> <span class="n">config</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ClientConfiguration</span><span class="o">();</span>
-<span class="n">config</span><span class="o">.</span><span class="na">setZkServers</span><span class="o">(</span><span class="n">zkConnectionString</span><span class="o">);</span>
-<span class="n">config</span><span class="o">.</span><span class="na">setAddEntryTimeout</span><span class="o">(</span><span class="mi">2000</span><span class="o">);</span>
-<span class="n">BookKeeper</span> <span class="n">bkClient</span> <span class="o">=</span> <span class="k">new</span> <span class="n">BookKeeper</span><span class="o">(</span><span class="n">config</span><span class="o">);</span>
-</code></pre>
-    </div>
-  </li>
-  <li>
-    <p>By specifying a <code class="highlighter-rouge">ClientConfiguration</code> and a <a href="http://zookeeper.apache.org/doc/current/api/org/apache/zookeeper/ZooKeeper.html"><code class="highlighter-rouge">ZooKeeper</code></a> client object:</p>
-
-    <div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="n">ClientConfiguration</span> <span class="n">config</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ClientConfiguration</span><span class="o">();</span>
-<span class="n">config</span><span class="o">.</span><span class="na">setAddEntryTimeout</span><span class="o">(</span><span class="mi">5000</span><span class="o">);</span>
-<span class="n">ZooKeeper</span> <span class="n">zkClient</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ZooKeeper</span><span class="o">(</span><span class="cm">/* client args */</span><span class="o">);</span>
-<span class="n">BookKeeper</span> <span class="n">bkClient</span> <span class="o">=</span> <span class="k">new</span> <span class="n">BookKeeper</span><span class="o">(</span><span class="n">config</span><span class="o">,</span> <span class="n">zkClient</span><span class="o">);</span>
-</code></pre>
-    </div>
-  </li>
-  <li>
-    <p>Using the <code class="highlighter-rouge">forConfig</code> method:</p>
-
-    <div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="n">BookKeeper</span> <span class="n">bkClient</span> <span class="o">=</span> <span class="n">BookKeeper</span><span class="o">.</span><span class="na">forConfig</span><span class="o">(</span><span class="n">conf</span><span class="o">).</span><span class="na">build</span><span class="o">();</span>
-</code></pre>
-    </div>
-  </li>
-</ul>
-
-<h2 id="creating-ledgers">Creating ledgers</h2>
-
-<p>The easiest way to create a <span class="pop" id="ledger-popover">ledger</span> using the Java client is via the <code class="highlighter-rouge">createLedger</code> method, which creates a new ledger synchronously and returns a <a href="/javadoc/org/apache/bookkeeper/client/LedgerHandle"><code class="highlighter-rouge">LedgerHandle</code></a>. You must specify at least a <a href="/javadoc/org/apache/bookkeeper/client/BookKeeper.DigestType"><code class="highlighter-rouge">DigestType</c [...]
-
-<p>Here’s an example:</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kt">byte</span><span class="o">[]</span> <span class="n">password</span> <span class="o">=</span> <span class="s">"some-password"</span><span class="o">.</span><span class="na">getBytes</span><span class="o">();</span>
-<span class="n">LedgerHandle</span> <span class="n">handle</span> <span class="o">=</span> <span class="n">bkClient</span><span class="o">.</span><span class="na">createLedger</span><span class="o">(</span><span class="n">BookKeeper</span><span class="o">.</span><span class="na">DigestType</span><span class="o">.</span><span class="na">MAC</span><span class="o">,</span> <span class="n">password</span><span class="o">);</span>
-</code></pre>
-</div>
-
-<p>You can also create ledgers asynchronously</p>
-
-<h3 id="create-ledgers-asynchronously">Create ledgers asynchronously</h3>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kd">class</span> <span class="nc">LedgerCreationCallback</span> <span class="kd">implements</span> <span class="n">AsyncCallback</span><span class="o">.</span><span class="na">CreateCallback</span> <span class="o">{</span>
-    <span class="kd">public</span> <span class="kt">void</span> <span class="nf">createComplete</span><span class="o">(</span><span class="kt">int</span> <span class="n">returnCode</span><span class="o">,</span> <span class="n">LedgerHandle</span> <span class="n">handle</span><span class="o">,</span> <span class="n">Object</span> <span class="n">ctx</span><span class="o">)</span> <span class="o">{</span>
-        <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Ledger successfully created"</span><span class="o">);</span>
-    <span class="o">}</span>
-<span class="o">}</span>
-
-<span class="n">client</span><span class="o">.</span><span class="na">asyncCreateLedger</span><span class="o">(</span>
-        <span class="mi">3</span><span class="o">,</span>
-        <span class="mi">2</span><span class="o">,</span>
-        <span class="n">BookKeeper</span><span class="o">.</span><span class="na">DigestType</span><span class="o">.</span><span class="na">MAC</span><span class="o">,</span>
-        <span class="n">password</span><span class="o">,</span>
-        <span class="k">new</span> <span class="nf">LedgerCreationCallback</span><span class="o">(),</span>
-        <span class="s">"some context"</span>
-<span class="o">);</span>
-</code></pre>
-</div>
-
-<h2 id="adding-entries-to-ledgers">Adding entries to ledgers</h2>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kt">long</span> <span class="n">entryId</span> <span class="o">=</span> <span class="n">ledger</span><span class="o">.</span><span class="na">addEntry</span><span class="o">(</span><span class="s">"Some entry data"</span><span class="o">.</span><span class="na">getBytes</span><span class="o">());</span>
-</code></pre>
-</div>
-
-<h3 id="add-entries-asynchronously">Add entries asynchronously</h3>
-
-<h2 id="reading-entries-from-ledgers">Reading entries from ledgers</h2>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="n">Enumerator</span><span class="o">&lt;</span><span class="n">LedgerEntry</span><span class="o">&gt;</span> <span class="n">entries</span> <span class="o">=</span> <span class="n">handle</span><span class="o">.</span><span class="na">readEntries</span><span class="o">(</span><span class="mi">1</span><span class="o">,</span> <span class="mi">99</span><span class="o">);</span>
-</code></pre>
-</div>
-
-<p>To read all possible entries from the ledger:</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="n">Enumerator</span><span class="o">&lt;</span><span class="n">LedgerEntry</span><span class="o">&gt;</span> <span class="n">entries</span> <span class="o">=</span>
-  <span class="n">handle</span><span class="o">.</span><span class="na">readEntries</span><span class="o">(</span><span class="mi">0</span><span class="o">,</span> <span class="n">handle</span><span class="o">.</span><span class="na">getLastAddConfirmed</span><span class="o">());</span>
-
-<span class="k">while</span> <span class="o">(</span><span class="n">entries</span><span class="o">.</span><span class="na">hasNextElement</span><span class="o">())</span> <span class="o">{</span>
-    <span class="n">LedgerEntry</span> <span class="n">entry</span> <span class="o">=</span> <span class="n">entries</span><span class="o">.</span><span class="na">nextElement</span><span class="o">();</span>
-    <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Successfully read entry "</span> <span class="o">+</span> <span class="n">entry</span><span class="o">.</span><span class="na">getId</span><span class="o">());</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-<h3 id="reading-entries-after-the-lastaddconfirmed-range">Reading entries after the LastAddConfirmed range</h3>
-
-<p><code class="highlighter-rouge">readUnconfirmedEntries</code> allowing to read after the LastAddConfirmed range.
-It lets the client read without checking the local value of LastAddConfirmed, so that it is possible to read entries for which the writer has not received the acknowledge yet
-For entries which are within the range 0..LastAddConfirmed BookKeeper guarantees that the writer has successfully received the acknowledge.
-For entries outside that range it is possible that the writer never received the acknowledge and so there is the risk that the reader is seeing entries before the writer and this could result in a consistency issue in some cases.
-With this method you can even read entries before the LastAddConfirmed and entries after it with one call, the expected consistency will be as described above.</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="n">Enumerator</span><span class="o">&lt;</span><span class="n">LedgerEntry</span><span class="o">&gt;</span> <span class="n">entries</span> <span class="o">=</span>
-  <span class="n">handle</span><span class="o">.</span><span class="na">readUnconfirmedEntries</span><span class="o">(</span><span class="mi">0</span><span class="o">,</span> <span class="n">lastEntryIdExpectedToRead</span><span class="o">);</span>
-
-<span class="k">while</span> <span class="o">(</span><span class="n">entries</span><span class="o">.</span><span class="na">hasNextElement</span><span class="o">())</span> <span class="o">{</span>
-    <span class="n">LedgerEntry</span> <span class="n">entry</span> <span class="o">=</span> <span class="n">entries</span><span class="o">.</span><span class="na">nextElement</span><span class="o">();</span>
-    <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Successfully read entry "</span> <span class="o">+</span> <span class="n">entry</span><span class="o">.</span><span class="na">getId</span><span class="o">());</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-<h2 id="deleting-ledgers">Deleting ledgers</h2>
-
-<p><span class="pop" id="ledger-popover">Ledgers</span> can also be deleted synchronously or asynchronously.</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kt">long</span> <span class="n">ledgerId</span> <span class="o">=</span> <span class="mi">1234</span><span class="o">;</span>
-
-<span class="k">try</span> <span class="o">{</span>
-    <span class="n">bkClient</span><span class="o">.</span><span class="na">deleteLedger</span><span class="o">(</span><span class="n">ledgerId</span><span class="o">);</span>
-<span class="o">}</span> <span class="k">catch</span> <span class="o">(</span><span class="n">Exception</span> <span class="n">e</span><span class="o">)</span> <span class="o">{</span>
-  <span class="n">e</span><span class="o">.</span><span class="na">printStackTrace</span><span class="o">();</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-<h3 id="delete-entries-asynchronously">Delete entries asynchronously</h3>
-
-<p>Exceptions thrown:</p>
-
-<p>*</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kd">class</span> <span class="nc">DeleteEntryCallback</span> <span class="kd">implements</span> <span class="n">AsyncCallback</span><span class="o">.</span><span class="na">DeleteCallback</span> <span class="o">{</span>
-    <span class="kd">public</span> <span class="kt">void</span> <span class="nf">deleteComplete</span><span class="o">()</span> <span class="o">{</span>
-        <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Delete completed"</span><span class="o">);</span>
-    <span class="o">}</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-<h2 id="simple-example">Simple example</h2>
-
-<blockquote>
-  <p>For a more involved BookKeeper client example, see the <a href="#example-application">example application</a> below.</p>
-</blockquote>
-
-<p>In the code sample below, a BookKeeper client:</p>
-
-<ul>
-  <li>creates a ledger</li>
-  <li>writes entries to the ledger</li>
-  <li>closes the ledger (meaning no further writes are possible)</li>
-  <li>re-opens the ledger for reading</li>
-  <li>reads all available entries</li>
-</ul>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="c1">// Create a client object for the local ensemble. This</span>
-<span class="c1">// operation throws multiple exceptions, so make sure to</span>
-<span class="c1">// use a try/catch block when instantiating client objects.</span>
-<span class="n">BookKeeper</span> <span class="n">bkc</span> <span class="o">=</span> <span class="k">new</span> <span class="n">BookKeeper</span><span class="o">(</span><span class="s">"localhost:2181"</span><span class="o">);</span>
-
-<span class="c1">// A password for the new ledger</span>
-<span class="kt">byte</span><span class="o">[]</span> <span class="n">ledgerPassword</span> <span class="o">=</span> <span class="cm">/* some sequence of bytes, perhaps random */</span><span class="o">;</span>
-
-<span class="c1">// Create a new ledger and fetch its identifier</span>
-<span class="n">LedgerHandle</span> <span class="n">lh</span> <span class="o">=</span> <span class="n">bkc</span><span class="o">.</span><span class="na">createLedger</span><span class="o">(</span><span class="n">BookKeeper</span><span class="o">.</span><span class="na">DigestType</span><span class="o">.</span><span class="na">MAC</span><span class="o">,</span> <span class="n">ledgerPassword</span><span class="o">);</span>
-<span class="kt">long</span> <span class="n">ledgerId</span> <span class="o">=</span> <span class="n">lh</span><span class="o">.</span><span class="na">getId</span><span class="o">();</span>
-
-<span class="c1">// Create a buffer for four-byte entries</span>
-<span class="n">ByteBuffer</span> <span class="n">entry</span> <span class="o">=</span> <span class="n">ByteBuffer</span><span class="o">.</span><span class="na">allocate</span><span class="o">(</span><span class="mi">4</span><span class="o">);</span>
-
-<span class="kt">int</span> <span class="n">numberOfEntries</span> <span class="o">=</span> <span class="mi">100</span><span class="o">;</span>
-
-<span class="c1">// Add entries to the ledger, then close it</span>
-<span class="k">for</span> <span class="o">(</span><span class="kt">int</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="n">numberOfEntries</span><span class="o">;</span> <span class="n">i</span><span class="o">++){</span>
-	<span class="n">entry</span><span class="o">.</span><span class="na">putInt</span><span class="o">(</span><span class="n">i</span><span class="o">);</span>
-	<span class="n">entry</span><span class="o">.</span><span class="na">position</span><span class="o">(</span><span class="mi">0</span><span class="o">);</span>
-	<span class="n">lh</span><span class="o">.</span><span class="na">addEntry</span><span class="o">(</span><span class="n">entry</span><span class="o">.</span><span class="na">array</span><span class="o">());</span>
-<span class="o">}</span>
-<span class="n">lh</span><span class="o">.</span><span class="na">close</span><span class="o">();</span>
-
-<span class="c1">// Open the ledger for reading</span>
-<span class="n">lh</span> <span class="o">=</span> <span class="n">bkc</span><span class="o">.</span><span class="na">openLedger</span><span class="o">(</span><span class="n">ledgerId</span><span class="o">,</span> <span class="n">BookKeeper</span><span class="o">.</span><span class="na">DigestType</span><span class="o">.</span><span class="na">MAC</span><span class="o">,</span> <span class="n">ledgerPassword</span><span class="o">);</span>
-
-<span class="c1">// Read all available entries</span>
-<span class="n">Enumeration</span><span class="o">&lt;</span><span class="n">LedgerEntry</span><span class="o">&gt;</span> <span class="n">entries</span> <span class="o">=</span> <span class="n">lh</span><span class="o">.</span><span class="na">readEntries</span><span class="o">(</span><span class="mi">0</span><span class="o">,</span> <span class="n">numberOfEntries</span> <span class="o">-</span> <span class="mi">1</span><span class="o">);</span>
-
-<span class="k">while</span><span class="o">(</span><span class="n">entries</span><span class="o">.</span><span class="na">hasMoreElements</span><span class="o">())</span> <span class="o">{</span>
-	<span class="n">ByteBuffer</span> <span class="n">result</span> <span class="o">=</span> <span class="n">ByteBuffer</span><span class="o">.</span><span class="na">wrap</span><span class="o">(</span><span class="n">ls</span><span class="o">.</span><span class="na">nextElement</span><span class="o">().</span><span class="na">getEntry</span><span class="o">());</span>
-	<span class="n">Integer</span> <span class="n">retrEntry</span> <span class="o">=</span> <span class="n">result</span><span class="o">.</span><span class="na">getInt</span><span class="o">();</span>
-
-    <span class="c1">// Print the integer stored in each entry</span>
-    <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="n">String</span><span class="o">.</span><span class="na">format</span><span class="o">(</span><span class="s">"Result: %s"</span><span class="o">,</span> <span class="n">retrEntry</span><span class="o">));</span>
-<span class="o">}</span>
-
-<span class="c1">// Close the ledger and the client</span>
-<span class="n">lh</span><span class="o">.</span><span class="na">close</span><span class="o">();</span>
-<span class="n">bkc</span><span class="o">.</span><span class="na">close</span><span class="o">();</span>
-</code></pre>
-</div>
-
-<p>Running this should return this output:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>Result: 0
-Result: 1
-Result: 2
-<span class="c"># etc</span>
-</code></pre>
-</div>
-
-<h2 id="example-application">Example application</h2>
-
-<p>This tutorial walks you through building an example application that uses BookKeeper as the replicated log. The application uses the <a href="../java-client">BookKeeper Java client</a> to interact with BookKeeper.</p>
-
-<blockquote>
-  <p>The code for this tutorial can be found in <a href="https://github.com/ivankelly/bookkeeper-tutorial/">this GitHub repo</a>. The final code for the <code class="highlighter-rouge">Dice</code> class can be found <a href="https://github.com/ivankelly/bookkeeper-tutorial/blob/master/src/main/java/org/apache/bookkeeper/Dice.java">here</a>.</p>
-</blockquote>
-
-<h3 id="setup">Setup</h3>
-
-<p>Before you start, you will need to have a BookKeeper cluster running locally on your machine. For installation instructions, see <a href="../../getting-started/installation">Installation</a>.</p>
-
-<p>To start up a cluster consisting of six <span class="pop" id="bookie-popover">bookies</span> locally:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper localbookie 6
-</code></pre>
-</div>
-
-<p>You can specify a different number of bookies if you’d like.</p>
-
-<h3 id="goal">Goal</h3>
-
-<p>The goal of the dice application is to have</p>
-
-<ul>
-  <li>multiple instances of this application,</li>
-  <li>possibly running on different machines,</li>
-  <li>all of which display the exact same sequence of numbers.</li>
-</ul>
-
-<p>In other words, the log needs to be both durable and consistent, regardless of how many <span class="pop" id="bookie-popover">bookies</span> are participating in the BookKeeper ensemble. If one of the bookies crashes or becomes unable to communicate with the other bookies in any way, it should <em>still</em> display the same sequence of numbers as the others. This tutorial will show you how to achieve this.</p>
-
-<p>To begin, download the base application, compile and run it.</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>git clone https://github.com/ivankelly/bookkeeper-tutorial.git
-<span class="gp">$ </span>mvn package
-<span class="gp">$ </span>mvn <span class="nb">exec</span>:java -Dexec.mainClass<span class="o">=</span>org.apache.bookkeeper.Dice
-</code></pre>
-</div>
-
-<p>That should yield output that looks something like this:</p>
-
-<div class="highlighter-rouge"><pre class="highlight"><code>[INFO] Scanning for projects...
-[INFO]                                                                         
-[INFO] ------------------------------------------------------------------------
-[INFO] Building tutorial 1.0-SNAPSHOT
-[INFO] ------------------------------------------------------------------------
-[INFO]
-[INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @ tutorial ---
-[WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.
-Value = 4
-Value = 5
-Value = 3
-</code></pre>
-</div>
-
-<h3 id="the-base-application">The base application</h3>
-
-<p>The application in this tutorial is a dice application. The <code class="highlighter-rouge">Dice</code> class below has a <code class="highlighter-rouge">playDice</code> function that generates a random number between 1 and 6 every second, prints the value of the dice roll, and runs indefinitely.</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="nc">Dice</span> <span class="o">{</span>
-    <span class="n">Random</span> <span class="n">r</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Random</span><span class="o">();</span>
-
-    <span class="kt">void</span> <span class="nf">playDice</span><span class="o">()</span> <span class="kd">throws</span> <span class="n">InterruptedException</span> <span class="o">{</span>
-        <span class="k">while</span> <span class="o">(</span><span class="kc">true</span><span class="o">)</span> <span class="o">{</span>
-            <span class="n">Thread</span><span class="o">.</span><span class="na">sleep</span><span class="o">(</span><span class="mi">1000</span><span class="o">);</span>
-            <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Value = "</span> <span class="o">+</span> <span class="o">(</span><span class="n">r</span><span class="o">.</span><span class="na">nextInt</span><span class="o">(</span><span class="mi">6</span><span class="o">)</span> <span class="o">+</span> <span class="mi">1</span><span class="o">));</span>
-        <span class="o">}</span>
-    <span class="o">}</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-<p>When you run the <code class="highlighter-rouge">main</code> function of this class, a new <code class="highlighter-rouge">Dice</code> object will be instantiated and then run indefinitely:</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="nc">Dice</span> <span class="o">{</span>
-    <span class="c1">// other methods</span>
-
-    <span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">(</span><span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">InterruptedException</span> <span class="o">{</span>
-        <span class="n">Dice</span> <span class="n">d</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Dice</span><span class="o">();</span>
-        <span class="n">d</span><span class="o">.</span><span class="na">playDice</span><span class="o">();</span>
-    <span class="o">}</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-<h3 id="leaders-and-followers-and-a-bit-of-background">Leaders and followers (and a bit of background)</h3>
-
-<p>To achieve this common view in multiple instances of the program, we need each instance to agree on what the next number in the sequence will be. For example, the instances must agree that 4 is the first number and 2 is the second number and 5 is the third number and so on. This is a difficult problem, especially in the case that any instance may go away at any time, and messages between the instances can be lost or reordered.</p>
-
-<p>Luckily, there are already algorithms to solve this. Paxos is an abstract algorithm to implement this kind of agreement, while Zab and Raft are more practical protocols. This video gives a good overview about how these algorithms usually look. They all have a similar core.</p>
-
-<p>It would be possible to run the Paxos to agree on each number in the sequence. However, running Paxos each time can be expensive. What Zab and Raft do is that they use a Paxos-like algorithm to elect a leader. The leader then decides what the sequence of events should be, putting them in a log, which the other instances can then follow to maintain the same state as the leader.</p>
-
-<p>Bookkeeper provides the functionality for the second part of the protocol, allowing a leader to write events to a log and have multiple followers tailing the log. However, bookkeeper does not do leader election. You will need a zookeeper or raft instance for that purpose.</p>
-
-<h3 id="why-not-just-use-zookeeper">Why not just use ZooKeeper?</h3>
-
-<p>There are a number of reasons:</p>
-
-<ol>
-  <li>Zookeeper’s log is only exposed through a tree like interface. It can be hard to shoehorn your application into this.</li>
-  <li>A zookeeper ensemble of multiple machines is limited to one log. You may want one log per resource, which will become expensive very quickly.</li>
-  <li>Adding extra machines to a zookeeper ensemble does not increase capacity nor throughput.</li>
-</ol>
-
-<p>Bookkeeper can be seen as a means of exposing ZooKeeper’s replicated log to applications in a scalable fashion. ZooKeeper is still used by BookKeeper, however, to maintain consistency guarantees, though clients don’t need to interact with ZooKeeper directly.</p>
-
-<h3 id="electing-a-leader">Electing a leader</h3>
-
-<p>We’ll use zookeeper to elect a leader. A zookeeper instance will have started locally when you started the localbookie application above. To verify it’s running, run the following command.</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span><span class="nb">echo </span>stat | nc localhost 2181
-Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
-Clients:
- /127.0.0.1:59343[1]<span class="o">(</span><span class="nv">queued</span><span class="o">=</span>0,recved<span class="o">=</span>40,sent<span class="o">=</span>41<span class="o">)</span>
- /127.0.0.1:49354[1]<span class="o">(</span><span class="nv">queued</span><span class="o">=</span>0,recved<span class="o">=</span>11,sent<span class="o">=</span>11<span class="o">)</span>
- /127.0.0.1:49361[0]<span class="o">(</span><span class="nv">queued</span><span class="o">=</span>0,recved<span class="o">=</span>1,sent<span class="o">=</span>0<span class="o">)</span>
- /127.0.0.1:59344[1]<span class="o">(</span><span class="nv">queued</span><span class="o">=</span>0,recved<span class="o">=</span>38,sent<span class="o">=</span>39<span class="o">)</span>
- /127.0.0.1:59345[1]<span class="o">(</span><span class="nv">queued</span><span class="o">=</span>0,recved<span class="o">=</span>38,sent<span class="o">=</span>39<span class="o">)</span>
- /127.0.0.1:59346[1]<span class="o">(</span><span class="nv">queued</span><span class="o">=</span>0,recved<span class="o">=</span>38,sent<span class="o">=</span>39<span class="o">)</span>
-
-Latency min/avg/max: 0/0/23
-Received: 167
-Sent: 170
-Connections: 6
-Outstanding: 0
-Zxid: 0x11
-Mode: standalone
-Node count: 16
-</code></pre>
-</div>
-
-<p>To interact with zookeeper, we’ll use the Curator client rather than the stock zookeeper client. Getting things right with the zookeeper client can be tricky, and curator removes a lot of the pointy corners for you. In fact, curator even provides a leader election recipe, so we need to do very little work to get leader election in our application.</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="nc">Dice</span> <span class="kd">extends</span> <span class="n">LeaderSelectorListenerAdapter</span> <span class="kd">implements</span> <span class="n">Closeable</span> <span class="o">{</span>
-
-    <span class="kd">final</span> <span class="kd">static</span> <span class="n">String</span> <span class="n">ZOOKEEPER_SERVER</span> <span class="o">=</span> <span class="s">"127.0.0.1:2181"</span><span class="o">;</span>
-    <span class="kd">final</span> <span class="kd">static</span> <span class="n">String</span> <span class="n">ELECTION_PATH</span> <span class="o">=</span> <span class="s">"/dice-elect"</span><span class="o">;</span>
-
-    <span class="o">...</span>
-
-    <span class="n">Dice</span><span class="o">()</span> <span class="kd">throws</span> <span class="n">InterruptedException</span> <span class="o">{</span>
-        <span class="n">curator</span> <span class="o">=</span> <span class="n">CuratorFrameworkFactory</span><span class="o">.</span><span class="na">newClient</span><span class="o">(</span><span class="n">ZOOKEEPER_SERVER</span><span class="o">,</span>
-                <span class="mi">2000</span><span class="o">,</span> <span class="mi">10000</span><span class="o">,</span> <span class="k">new</span> <span class="n">ExponentialBackoffRetry</span><span class="o">(</span><span class="mi">1000</span><span class="o">,</span> <span class="mi">3</span><span class="o">));</span>
-        <span class="n">curator</span><span class="o">.</span><span class="na">start</span><span class="o">();</span>
-        <span class="n">curator</span><span class="o">.</span><span class="na">blockUntilConnected</span><span class="o">();</span>
-
-        <span class="n">leaderSelector</span> <span class="o">=</span> <span class="k">new</span> <span class="n">LeaderSelector</span><span class="o">(</span><span class="n">curator</span><span class="o">,</span> <span class="n">ELECTION_PATH</span><span class="o">,</span> <span class="k">this</span><span class="o">);</span>
-        <span class="n">leaderSelector</span><span class="o">.</span><span class="na">autoRequeue</span><span class="o">();</span>
-        <span class="n">leaderSelector</span><span class="o">.</span><span class="na">start</span><span class="o">();</span>
-    <span class="o">}</span>
-</code></pre>
-</div>
-
-<p>In the constructor for Dice, we need to create the curator client. We specify four things when creating the client, the location of the zookeeper service, the session timeout, the connect timeout and the retry policy.</p>
-
-<p>The session timeout is a zookeeper concept. If the zookeeper server doesn’t hear anything from the client for this amount of time, any leases which the client holds will be timed out. This is important in leader election. For leader election, the curator client will take a lease on ELECTION_PATH. The first instance to take the lease will become leader and the rest will become followers. However, their claim on the lease will remain in the cue. If the first instance then goes away, due [...]
-
-<p>Finally, you’ll have noticed that Dice now extends LeaderSelectorListenerAdapter and implements Closeable. Closeable is there to close the resource we have initialized in the constructor, the curator client and the leaderSelector. LeaderSelectorListenerAdapter is a callback that the leaderSelector uses to notify the instance that it is now the leader. It is passed as the third argument to the LeaderSelector constructor.</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code>    <span class="nd">@Override</span>
-    <span class="kd">public</span> <span class="kt">void</span> <span class="nf">takeLeadership</span><span class="o">(</span><span class="n">CuratorFramework</span> <span class="n">client</span><span class="o">)</span>
-            <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
-        <span class="kd">synchronized</span> <span class="o">(</span><span class="k">this</span><span class="o">)</span> <span class="o">{</span>
-            <span class="n">leader</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
-            <span class="k">try</span> <span class="o">{</span>
-                <span class="k">while</span> <span class="o">(</span><span class="kc">true</span><span class="o">)</span> <span class="o">{</span>
-                    <span class="k">this</span><span class="o">.</span><span class="na">wait</span><span class="o">();</span>
-                <span class="o">}</span>
-            <span class="o">}</span> <span class="k">catch</span> <span class="o">(</span><span class="n">InterruptedException</span> <span class="n">ie</span><span class="o">)</span> <span class="o">{</span>
-                <span class="n">Thread</span><span class="o">.</span><span class="na">currentThread</span><span class="o">().</span><span class="na">interrupt</span><span class="o">();</span>
-                <span class="n">leader</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
-            <span class="o">}</span>
-        <span class="o">}</span>
-    <span class="o">}</span>
-</code></pre>
-</div>
-
-<p>takeLeadership() is the callback called by LeaderSelector when the instance is leader. It should only return when the instance wants to give up leadership. In our case, we never do so we wait on the current object until we’re interrupted. To signal to the rest of the program that we are leader we set a volatile boolean called leader to true. This is unset after we are interrupted.</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code>    <span class="kt">void</span> <span class="nf">playDice</span><span class="o">()</span> <span class="kd">throws</span> <span class="n">InterruptedException</span> <span class="o">{</span>
-        <span class="k">while</span> <span class="o">(</span><span class="kc">true</span><span class="o">)</span> <span class="o">{</span>
-            <span class="k">while</span> <span class="o">(</span><span class="n">leader</span><span class="o">)</span> <span class="o">{</span>
-                <span class="n">Thread</span><span class="o">.</span><span class="na">sleep</span><span class="o">(</span><span class="mi">1000</span><span class="o">);</span>
-                <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">"Value = "</span> <span class="o">+</span> <span class="o">(</span><span class="n">r</span><span class="o">.</span><span class="na">nextInt</span><span class="o">(</span><span class="mi">6</span><span class="o">)</span> <span class="o">+</span> <span class="mi">1</span><span class="o">)</span>
-                                   <span class="o">+</span> <span class="s">", isLeader = "</span> <span class="o">+</span> <span class="n">leader</span><span class="o">);</span>
-            <span class="o">}</span>
-        <span class="o">}</span>
-    <span class="o">}</span>
-</code></pre>
-</div>
-
-<p>Finally, we modify the <code class="highlighter-rouge">playDice</code> function to only generate random numbers when it is the leader.</p>
-
-<p>Run two instances of the program in two different terminals. You’ll see that one becomes leader and prints numbers and the other just sits there.</p>
-
-<p>Now stop the leader using Control-Z. This will pause the process, but it won’t kill it. You will be dropped back to the shell in that terminal. After a couple of seconds, the session timeout, you will see that the other instance has become the leader. Zookeeper will guarantee that only one instance is selected as leader at any time.</p>
-
-<p>Now go back to the shell that the original leader was on and wake up the process using fg. You’ll see something like the following:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>...
-...
-Value <span class="o">=</span> 4, isLeader <span class="o">=</span> <span class="nb">true
-</span>Value <span class="o">=</span> 4, isLeader <span class="o">=</span> <span class="nb">true</span>
-^Z
-<span class="o">[</span>1]+  Stopped                 mvn <span class="nb">exec</span>:java -Dexec.mainClass<span class="o">=</span>org.apache.bookkeeper.Dice
-<span class="gp">$ </span><span class="nb">fg
-</span>mvn <span class="nb">exec</span>:java -Dexec.mainClass<span class="o">=</span>org.apache.bookkeeper.Dice
-Value <span class="o">=</span> 3, isLeader <span class="o">=</span> <span class="nb">true
-</span>Value <span class="o">=</span> 1, isLeader <span class="o">=</span> <span class="nb">false</span>
-</code></pre>
-</div>
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">The Ledger API</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#the-java-ledger-api-client">The Java ledger API client</a></li>
-<li class="toc-entry toc-h2"><a href="#installation">Installation</a></li>
-<li class="toc-entry toc-h3"><a href="#maven">Maven</a></li>
-<li class="toc-entry toc-h3"><a href="#gradle">Gradle</a></li>
-<li class="toc-entry toc-h2"><a href="#connection-string">Connection string</a></li>
-<li class="toc-entry toc-h2"><a href="#creating-a-new-client">Creating a new client</a></li>
-<li class="toc-entry toc-h2"><a href="#creating-ledgers">Creating ledgers</a></li>
-<li class="toc-entry toc-h3"><a href="#create-ledgers-asynchronously">Create ledgers asynchronously</a></li>
-<li class="toc-entry toc-h2"><a href="#adding-entries-to-ledgers">Adding entries to ledgers</a></li>
-<li class="toc-entry toc-h3"><a href="#add-entries-asynchronously">Add entries asynchronously</a></li>
-<li class="toc-entry toc-h2"><a href="#reading-entries-from-ledgers">Reading entries from ledgers</a></li>
-<li class="toc-entry toc-h3"><a href="#reading-entries-after-the-lastaddconfirmed-range">Reading entries after the LastAddConfirmed range</a></li>
-<li class="toc-entry toc-h2"><a href="#deleting-ledgers">Deleting ledgers</a></li>
-<li class="toc-entry toc-h3"><a href="#delete-entries-asynchronously">Delete entries asynchronously</a></li>
-<li class="toc-entry toc-h2"><a href="#simple-example">Simple example</a></li>
-<li class="toc-entry toc-h2"><a href="#example-application">Example application</a></li>
-<li class="toc-entry toc-h3"><a href="#setup">Setup</a></li>
-<li class="toc-entry toc-h3"><a href="#goal">Goal</a></li>
-<li class="toc-entry toc-h3"><a href="#the-base-application">The base application</a></li>
-<li class="toc-entry toc-h3"><a href="#leaders-and-followers-and-a-bit-of-background">Leaders and followers (and a bit of background)</a></li>
-<li class="toc-entry toc-h3"><a href="#why-not-just-use-zookeeper">Why not just use ZooKeeper?</a></li>
-<li class="toc-entry toc-h3"><a href="#electing-a-leader">Electing a leader</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/api/overview/index.html b/content/docs/api/overview/index.html
deleted file mode 100644
index 8497266..0000000
--- a/content/docs/api/overview/index.html
+++ /dev/null
@@ -1,523 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - The ledger API vs. the DistributedLog API</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">The ledger API vs. the DistributedLog API</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>BookKeeper offers two APIs that applications can use to interact with it:</p>
-
-<ul>
-  <li>The <a href="../ledger-api">ledger API</a> is a lower-level API that enables you to interact with <span class="pop" id="ledger-popover">ledgers</span> directly</li>
-  <li>The <a href="../distributedlog-api">DistributedLog API</a> is a higher-level API that provides convenient abstractions.</li>
-</ul>
-
-<h2 id="trade-offs">Trade-offs</h2>
-
-<p>The advantage of the ledger API is that it provides direct access to ledgers and thus enables you to use BookKeeper however you’d like. The disadvantage is that it requires you to manage things like leader election on your own.</p>
-
-<p>The advantage of the DistributedLog API is that it’s easier to use, with semantics resembling a simple key/value store from the standpoint of applications. The disadvantage is that</p>
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">The ledger API vs. the DistributedLog API</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#trade-offs">Trade-offs</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/deployment/dcos/index.html b/content/docs/deployment/dcos/index.html
deleted file mode 100644
index 7c32c8c..0000000
--- a/content/docs/deployment/dcos/index.html
+++ /dev/null
@@ -1,718 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Deploying BookKeeper on DC/OS</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Deploying BookKeeper on DC/OS</h1>
-            </div>
-          </div>
-          
-          <div class="level-right">
-            <div class="level-item">
-              <img src="/test/content/img/dcos-logo.png">
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">Get up and running easily on an Apache Mesos cluster</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p><a href="https://dcos.io/">DC/OS</a> (the <strong>D</strong>ata<strong>C</strong>enter <strong>O</strong>perating <strong>S</strong>ystem) is a distributed operating system used for deploying and managing applications and systems on <a href="http://mesos.apache.org/">Apache Mesos</a>. DC/OS is an open-source tool created and maintained by <a href="https://mesosphere.com/">Mesosphere</a>.</p>
-
-<p>BookKeeper is available as a <a href="http://universe.dcos.io/#/package/bookkeeper/version/latest">DC/OS package</a> from the <a href="http://universe.dcos.io/#/packages">Mesosphere DC/OS Universe</a>.</p>
-
-<h2 id="prerequisites">Prerequisites</h2>
-
-<p>In order to run BookKeeper on DC/OS, you will need:</p>
-
-<ul>
-  <li>DC/OS version <a href="https://dcos.io/docs/1.8/">1.8</a> or higher</li>
-  <li>A DC/OS cluster with at least three nodes</li>
-  <li>The <a href="https://dcos.io/docs/1.8/usage/cli/install/">DC/OS CLI tool</a> installed</li>
-</ul>
-
-<p>Each node in your DC/OS-managed Mesos cluster must have at least:</p>
-
-<ul>
-  <li>1 CPU</li>
-  <li>1 GB of memory</li>
-  <li>10 GB of total persistent disk storage</li>
-</ul>
-
-<h2 id="installing-bookkeeper">Installing BookKeeper</h2>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>dcos package install bookkeeper --yes
-</code></pre>
-</div>
-
-<p>This command will:</p>
-
-<ul>
-  <li>Install the <code class="highlighter-rouge">bookkeeper</code> subcommand for the <code class="highlighter-rouge">dcos</code> CLI tool</li>
-  <li>Start a single <span class="pop" id="bookie-popover">bookie</span> on the Mesos cluster with the <a href="../../reference/config">default configuration</a></li>
-</ul>
-
-<p>The bookie that is automatically started up uses the host mode of the network and by default exports the service at <code class="highlighter-rouge">agent_ip:3181</code>.</p>
-
-<blockquote>
-  <p>If you run <code class="highlighter-rouge">dcos package install bookkeeper</code> without setting the <code class="highlighter-rouge">--yes</code> flag, the install will run in interactive mode. For more information on the <code class="highlighter-rouge">package install</code> command, see the <a href="https://docs.mesosphere.com/latest/cli/command-reference/dcos-package/dcos-package-install/">DC/OS docs</a>.</p>
-</blockquote>
-
-<h3 id="services">Services</h3>
-
-<p>To watch BookKeeper start up, click on the <strong>Services</strong> tab in the DC/OS <a href="https://docs.mesosphere.com/latest/gui/">user interface</a> and you should see the <code class="highlighter-rouge">bookkeeper</code> package listed:</p>
-
-<p><img src="/test/content/img/dcos/services.png" alt="DC/OS services" /></p>
-
-<h3 id="tasks">Tasks</h3>
-
-<p>To see which tasks have started, click on the <code class="highlighter-rouge">bookkeeper</code> service and you’ll see an interface that looks like this;</p>
-
-<p><img src="/test/content/img/dcos/tasks.png" alt="DC/OS tasks" /></p>
-
-<h2 id="scaling-bookkeeper">Scaling BookKeeper</h2>
-
-<p>Once the first <span class="pop" id="bookie-popover">bookie</span> has started up, you can click on the <strong>Scale</strong> tab to scale up your BookKeeper ensemble by adding more bookies (or scale down the ensemble by removing bookies).</p>
-
-<p><img src="/test/content/img/dcos/scale.png" alt="DC/OS scale" /></p>
-
-<h2 id="zookeeper-exhibitor">ZooKeeper Exhibitor</h2>
-
-<p>ZooKeeper contains the information for all bookies in the ensemble. When deployed on DC/OS, BookKeeper uses a ZooKeeper instance provided by DC/OS. You can access a visual UI for ZooKeeper using <a href="https://github.com/soabase/exhibitor/wiki">Exhibitor</a>, which is available at <a href="http://master.dcos/exhibitor">http://master.dcos/exhibitor</a>.</p>
-
-<p><img src="/test/content/img/dcos/exhibitor.png" alt="ZooKeeper Exhibitor" /></p>
-
-<p>You should see a listing of IP/host information for all bookies under the <code class="highlighter-rouge">messaging/bookkeeper/ledgers/available</code> node.</p>
-
-<h2 id="client-connections">Client connections</h2>
-
-<p>To connect to bookies running on DC/OS using clients running within your Mesos cluster, you need to specify the ZooKeeper connection string for DC/OS’s ZooKeeper cluster:</p>
-
-<div class="highlighter-rouge"><pre class="highlight"><code>master.mesos:2181
-</code></pre>
-</div>
-
-<p>This is the <em>only</em> ZooKeeper host/port you need to include in your connection string. Here’s an example using the <a href="../../api/ledger-api#the-java-ledger-api-client">Java client</a>:</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="n">BookKeeper</span> <span class="n">bkClient</span> <span class="o">=</span> <span class="k">new</span> <span class="n">BookKeeper</span><span class="o">(</span><span class="s">"master.mesos:2181"</span><span class="o">);</span>
-</code></pre>
-</div>
-
-<p>If you’re connecting using a client running outside your Mesos cluster, you need to supply the public-facing connection string for your DC/OS ZooKeeper cluster.</p>
-
-<h2 id="configuring-bookkeeper">Configuring BookKeeper</h2>
-
-<p>By default, the <code class="highlighter-rouge">bookkeeper</code> package will start up a BookKeeper ensemble consisting of one <span class="pop" id="bookie-popover">bookie</span> with one CPU, 1 GB of memory, and a 70 MB persistent volume.</p>
-
-<p>You can supply a non-default configuration when installing the package using a JSON file. Here’s an example command:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>dcos package install bookkeeper <span class="se">\</span>
-  --options<span class="o">=</span>/path/to/config.json
-</code></pre>
-</div>
-
-<p>You can then fetch the current configuration for BookKeeper at any time using the <code class="highlighter-rouge">package describe</code> command:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>dcos package describe bookkeeper <span class="se">\</span>
-  --config
-</code></pre>
-</div>
-
-<h3 id="available-parameters">Available parameters</h3>
-
-<blockquote>
-  <p>Not all <a href="../../reference/config">configurable parameters</a> for BookKeeper are available for BookKeeper on DC/OS. Only the parameters show in the table below are available.</p>
-</blockquote>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Param</th>
-      <th style="text-align: left">Type</th>
-      <th style="text-align: left">Description</th>
-      <th style="text-align: left">Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">name</code></td>
-      <td style="text-align: left">String</td>
-      <td style="text-align: left">The name of the DC/OS service.</td>
-      <td style="text-align: left"><code class="highlighter-rouge">bookkeeper</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">cpus</code></td>
-      <td style="text-align: left">Integer</td>
-      <td style="text-align: left">The number of CPU shares to allocate to each <span class="pop" id="bookie-popover">bookie</span>. The minimum is 1.</td>
-      <td style="text-align: left"><code class="highlighter-rouge">1</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">instances</code></td>
-      <td style="text-align: left">Integer</td>
-      <td style="text-align: left">The number of <span class="pop" id="bookie-popover">bookies</span> top run. The minimum is 1.</td>
-      <td style="text-align: left"><code class="highlighter-rouge">1</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mem</code></td>
-      <td style="text-align: left">Number</td>
-      <td style="text-align: left">The memory, in MB, to allocate to each BookKeeper task</td>
-      <td style="text-align: left"><code class="highlighter-rouge">1024.0</code> (1 GB)</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">volume_size</code></td>
-      <td style="text-align: left">Number</td>
-      <td style="text-align: left">The persistent volume size, in MB</td>
-      <td style="text-align: left"><code class="highlighter-rouge">70</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">zk_client</code></td>
-      <td style="text-align: left">String</td>
-      <td style="text-align: left">The connection string for the ZooKeeper client instance</td>
-      <td style="text-align: left"><code class="highlighter-rouge">master.mesos:2181</code></td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">service_port</code></td>
-      <td style="text-align: left">Integer</td>
-      <td style="text-align: left">The BookKeeper export service port, using <code class="highlighter-rouge">PORT0</code> in Marathon</td>
-      <td style="text-align: left"><code class="highlighter-rouge">3181</code></td>
-    </tr>
-  </tbody>
-</table>
-
-<h3 id="example-json-configuration">Example JSON configuration</h3>
-
-<p>Here’s an example JSON configuration object for BookKeeper on DC/OS:</p>
-
-<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w">
-  </span><span class="nt">"instances"</span><span class="p">:</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w">
-  </span><span class="nt">"cpus"</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w">
-  </span><span class="nt">"mem"</span><span class="p">:</span><span class="w"> </span><span class="mf">2048.0</span><span class="p">,</span><span class="w">
-  </span><span class="nt">"volume_size"</span><span class="p">:</span><span class="w"> </span><span class="mi">250</span><span class="w">
-</span><span class="p">}</span><span class="w">
-</span></code></pre>
-</div>
-
-<p>If that configuration were stored in a file called <code class="highlighter-rouge">bk-config.json</code>, you could apply that configuration upon installating the BookKeeper package using this command:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>dcos package install bookkeeper <span class="se">\</span>
-  --options<span class="o">=</span>./bk-config.json
-</code></pre>
-</div>
-
-<h2 id="uninstalling-bookkeeper">Uninstalling BookKeeper</h2>
-
-<p>You can shut down and uninstall the <code class="highlighter-rouge">bookkeeper</code> from DC/OS at any time using the <code class="highlighter-rouge">package uninstall</code> command:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>dcos package uninstall bookkeeper
-Uninstalled package <span class="o">[</span>bookkeeper] version <span class="o">[</span>4.5.0]
-Thank you <span class="k">for </span>using bookkeeper.
-</code></pre>
-</div>
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Deploying BookKeeper on DC/OS</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#prerequisites">Prerequisites</a></li>
-<li class="toc-entry toc-h2"><a href="#installing-bookkeeper">Installing BookKeeper</a></li>
-<li class="toc-entry toc-h3"><a href="#services">Services</a></li>
-<li class="toc-entry toc-h3"><a href="#tasks">Tasks</a></li>
-<li class="toc-entry toc-h2"><a href="#scaling-bookkeeper">Scaling BookKeeper</a></li>
-<li class="toc-entry toc-h2"><a href="#zookeeper-exhibitor">ZooKeeper Exhibitor</a></li>
-<li class="toc-entry toc-h2"><a href="#client-connections">Client connections</a></li>
-<li class="toc-entry toc-h2"><a href="#configuring-bookkeeper">Configuring BookKeeper</a></li>
-<li class="toc-entry toc-h3"><a href="#available-parameters">Available parameters</a></li>
-<li class="toc-entry toc-h3"><a href="#example-json-configuration">Example JSON configuration</a></li>
-<li class="toc-entry toc-h2"><a href="#uninstalling-bookkeeper">Uninstalling BookKeeper</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/deployment/kubernetes/index.html b/content/docs/deployment/kubernetes/index.html
deleted file mode 100644
index 4728aac..0000000
--- a/content/docs/deployment/kubernetes/index.html
+++ /dev/null
@@ -1,517 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Deploying BookKeeper on Kubernetes</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Deploying BookKeeper on Kubernetes</h1>
-            </div>
-          </div>
-          
-          <div class="level-right">
-            <div class="level-item">
-              <img src="/test/content/img/kubernetes-logo.png">
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Deploying BookKeeper on Kubernetes</h2>
-  <ul class="section-nav">
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/deployment/manual/index.html b/content/docs/deployment/manual/index.html
deleted file mode 100644
index 3af82ab..0000000
--- a/content/docs/deployment/manual/index.html
+++ /dev/null
@@ -1,595 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Manual deployment</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Manual deployment</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>The easiest way to deploy BookKeeper is using schedulers like <a href="../dcos">DC/OS</a>, but you can also deploy BookKeeper clusters manually. A BookKeeper cluster consists of two main components:</p>
-
-<ul>
-  <li>A <a href="#zookeeper-setup">ZooKeeper</a> cluster that is used for configuration- and coordination-related tasks</li>
-  <li>An <a href="#starting-up-bookies">ensemble</a> of <span class="pop" id="bookie-popover">bookies</span></li>
-</ul>
-
-<h2 id="zookeeper-setup">ZooKeeper setup</h2>
-
-<p>We won’t provide a full guide to setting up a ZooKeeper cluster here. We recommend that you consult <a href="https://zookeeper.apache.org/doc/current/zookeeperAdmin.html">this guide</a> in the official ZooKeeper documentation.</p>
-
-<h2 id="starting-up-bookies">Starting up bookies</h2>
-
-<p>Once your ZooKeeper cluster is up and running, you can start up as many <span class="pop" id="bookie-popover">bookies</span> as you’d like to form a cluster. Before starting up each bookie, you need to modify the bookie’s configuration to make sure that it points to the right ZooKeeper cluster.</p>
-
-<p>On each bookie host, you need to <a href="../../getting-started/installation#download">download</a> the BookKeeper package as a tarball. Once you’ve done that, you need to configure the bookie by setting values in the <code class="highlighter-rouge">bookkeeper-server/conf/bk_server.conf</code> config file. The one parameter that you will absolutely need to change is the <a href="../../config#zkServers"><code class="highlighter-rouge">zkServers</code></a> parameter, which you will need [...]
-
-<div class="language-properties highlighter-rouge"><pre class="highlight"><code><span class="py">zkServers</span><span class="p">=</span><span class="s">100.0.0.1:2181,100.0.0.2:2181,100.0.0.3:2181</span>
-</code></pre>
-</div>
-
-<blockquote>
-  <p>A full listing of configurable parameters available in <code class="highlighter-rouge">bookkeeper-server/conf/bk_server.conf</code> can be found in the <a href="../../reference/config">Configuration</a> reference manual.</p>
-</blockquote>
-
-<p>Once the bookie’s configuration is set, you can start it up using the <a href="../../reference/cli#bookkeeper-bookie"><code class="highlighter-rouge">bookie</code></a> command of the <a href="../../reference/cli#bookkeeper"><code class="highlighter-rouge">bookkeeper</code></a> CLI tool:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper bookie
-</code></pre>
-</div>
-
-<blockquote>
-  <p>You can also build BookKeeper <a href="../../getting-started/installation#clone">by cloning it from source</a> or <a href="../../getting-started/installation#build-using-maven">using Maven</a>.</p>
-</blockquote>
-
-<h3 id="system-requirements">System requirements</h3>
-
-<p>The number of bookies you should run in a BookKeeper cluster depends on the quorum mode that you’ve chosen, the desired throughput, and the number of clients using the cluster simultaneously.</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Quorum type</th>
-      <th style="text-align: left">Number of bookies</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left">Self-verifying quorum</td>
-      <td style="text-align: left">3</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Generic</td>
-      <td style="text-align: left">4</td>
-    </tr>
-  </tbody>
-</table>
-
-<p>Increasing the number of bookies will enable higher throughput, and there is <strong>no upper limit</strong> on the number of bookies.</p>
-
-<h2 id="cluster-metadata-setup">Cluster metadata setup</h2>
-
-<p>Once you’ve started up a cluster of bookies, you need to set up cluster metadata for the cluster by running the following command from any bookie in the cluster:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell metaformat
-</code></pre>
-</div>
-
-<p>You can run in the formatting</p>
-
-<blockquote>
-  <p>The <code class="highlighter-rouge">metaformat</code> command performs all the necessary ZooKeeper cluster metadata tasks and thus only needs to be run <em>once</em> and from <em>any</em> bookie in the BookKeeper cluster.</p>
-</blockquote>
-
-<p>Once cluster metadata formatting has been completed, your BookKeeper cluster is ready to go!</p>
-
-<!--
-## AutoRecovery
-
-[this guide](../../admin/autorecovery)
--->
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Manual deployment</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#zookeeper-setup">ZooKeeper setup</a></li>
-<li class="toc-entry toc-h2"><a href="#starting-up-bookies">Starting up bookies</a></li>
-<li class="toc-entry toc-h3"><a href="#system-requirements">System requirements</a></li>
-<li class="toc-entry toc-h2"><a href="#cluster-metadata-setup">Cluster metadata setup</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/development/codebase/index.html b/content/docs/development/codebase/index.html
deleted file mode 100644
index cc047f7..0000000
--- a/content/docs/development/codebase/index.html
+++ /dev/null
@@ -1,511 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - The BookKeeper codebase</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">The BookKeeper codebase</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">The BookKeeper codebase</h2>
-  <ul class="section-nav">
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/development/protocol/index.html b/content/docs/development/protocol/index.html
deleted file mode 100644
index e922d7c..0000000
--- a/content/docs/development/protocol/index.html
+++ /dev/null
@@ -1,751 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - The BookKeeper protocol</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">The BookKeeper protocol</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>BookKeeper uses a special replication protocol for guaranteeing persistent storage of entries in an ensemble of bookies.</p>
-
-<blockquote>
-  <p>This document assumes that you have some knowledge of leader election and log replication and how these can be used in a distributed system. If not, we recommend reading the <a href="../../api/ledger-api#example-application">example application</a> documentation first.</p>
-</blockquote>
-
-<h2 id="ledgers">Ledgers</h2>
-
-<p><span class="pop" id="ledger-popover">Ledgers</span> are the basic building block of BookKeeper and the level at which BookKeeper makes its persistent storage guarantees. A replicated log consists of an ordered list of ledgers. See <a href="#ledgers-to-logs">Ledgers to logs</a> for info on building a replicated log from ledgers.</p>
-
-<p>Ledgers are composed of metadata and <span class="pop" id="entry-popover">entries</span>. The metadata is stored in ZooKeeper, which provides a <em>compare-and-swap</em> (CAS) operation. Entries are stored on storage nodes known as <span class="pop" id="bookie-popover">bookies</span>.</p>
-
-<p>A ledger has a single writer and multiple readers (SWMR).</p>
-
-<h3 id="ledger-metadata">Ledger metadata</h3>
-
-<p>A ledger’s metadata contains the following:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Parameter</th>
-      <th style="text-align: left">Name</th>
-      <th style="text-align: left">Meaning</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left">Identifer</td>
-      <td style="text-align: left"> </td>
-      <td style="text-align: left">A 64-bit integer, unique within the system</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Ensemble size</td>
-      <td style="text-align: left"><strong>E</strong></td>
-      <td style="text-align: left">The number of nodes the ledger is stored on</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Write quorum size</td>
-      <td style="text-align: left"><strong>Q<sub>w</sub></strong></td>
-      <td style="text-align: left">The number of nodes each entry is written to. In effect, the max replication for the entry.</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Ack quorum size</td>
-      <td style="text-align: left"><strong>Q<sub>a</sub></strong></td>
-      <td style="text-align: left">The number of nodes an entry must be acknowledged on. In effect, the minimum replication for the entry.</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Current state</td>
-      <td style="text-align: left"> </td>
-      <td style="text-align: left">The current status of the ledger. One of <code class="highlighter-rouge">OPEN</code>, <code class="highlighter-rouge">CLOSED</code>, or <code class="highlighter-rouge">IN_RECOVERY</code>.</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Last entry</td>
-      <td style="text-align: left"> </td>
-      <td style="text-align: left">The last entry in the ledger or <code class="highlighter-rouge">NULL</code> is the current state is not <code class="highlighter-rouge">CLOSED</code>.</td>
-    </tr>
-  </tbody>
-</table>
-
-<p>In addition, each ledger’s metadata consists of one or more <em>fragments</em>. Each fragment is either</p>
-
-<ul>
-  <li>the first entry of a fragment or</li>
-  <li>a list of bookies for the fragment.</li>
-</ul>
-
-<p>When creating a ledger, the following invariant must hold:</p>
-
-<p><strong>E &gt;= Q<sub>w</sub> &gt;= Qa</strong></p>
-
-<p>Thus, the ensemble size (<strong>E</strong>) must be larger than the write quorum size (<strong>Q<sub>w</sub></strong>), which must in turn be larger than the ack quorum size (<strong>Q<sub>a</sub></strong>). If that condition does not hold, then the ledger creation operation will fail.</p>
-
-<h3 id="ensembles">Ensembles</h3>
-
-<p>When a ledger is created, <strong>E</strong> bookies are chosen for the entries of that ledger. The bookies are the initial ensemble of the ledger. A ledger can have multiple ensembles, but an entry has only one ensemble. Changes in the ensemble involve a new fragment being added to the ledger.</p>
-
-<p>Take the following example. In this ledger, with ensemble size of 3, there are two fragments and thus two ensembles, one starting at entry 0, the second at entry 12. The second ensemble differs from the first only by its first element. This could be because bookie1 has failed and therefore had to be replaced.</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">First entry</th>
-      <th style="text-align: left">Bookies</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left">0</td>
-      <td style="text-align: left">B1, B2, B3</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">12</td>
-      <td style="text-align: left">B4, B2, B3</td>
-    </tr>
-  </tbody>
-</table>
-
-<h3 id="write-quorums">Write quorums</h3>
-
-<p>Each entry in the log is written to <strong>Q<sub>w</sub></strong> nodes. This is considered the write quorum for that entry. The write quorum is the subsequence of the ensemble, <strong>Q<sub>w</sub></strong> in length, and starting at the bookie at index (entryid % <strong>E</strong>).</p>
-
-<p>For example, in a ledger of <strong>E</strong> = 4, <strong>Q<sub>w</sub></strong>, and <strong>Q<sub>a</sub></strong> = 2, with an ensemble consisting of B1, B2, B3, and B4, the write quorums for the first 6 entries will be:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Entry</th>
-      <th style="text-align: left">Write quorum</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left">0</td>
-      <td style="text-align: left">B1, B2, B3</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">1</td>
-      <td style="text-align: left">B2, B3, B4</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">2</td>
-      <td style="text-align: left">B3, B4, B1</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">3</td>
-      <td style="text-align: left">B4, B1, B2</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">4</td>
-      <td style="text-align: left">B1, B2, B3</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">5</td>
-      <td style="text-align: left">B2, B3, B4</td>
-    </tr>
-  </tbody>
-</table>
-
-<p>There are only <strong>E</strong> distinct write quorums in any ensemble. If <strong>Q<sub>w</sub></strong> = <strong>Q<sub>a</sub></strong>, then there is only one, as no striping occurs.</p>
-
-<h3 id="ack-quorums">Ack quorums</h3>
-
-<p>The ack quorum for an entry is any subset of the write quorum of size <strong>Q<sub>a</sub></strong>. If <strong>Q<sub>a</sub></strong> bookies acknowledge an entry, it means it has been fully replicated.</p>
-
-<h3 id="guarantees">Guarantees</h3>
-
-<p>The system can tolerate <strong>Q<sub>a</sub></strong> – 1 failures without data loss.</p>
-
-<p>Bookkeeper guarantees that:</p>
-
-<ol>
-  <li>All updates to a ledger will be read in the same order as they were written.</li>
-  <li>All clients will read the same sequence of updates from the ledger.</li>
-</ol>
-
-<h2 id="writing-to-ledgers">Writing to ledgers</h2>
-
-<p>writer, ensuring that entry ids are sequential is trivial. A bookie acknowledges a write once it has been persisted to disk and is therefore durable. Once <strong>Q<sub>a</sub></strong> bookies from the write quorum acknowledge the write, the write is acknowledged to the client, but only if all entries with lower entry ids in the ledger have already been acknowledged to the client.</p>
-
-<p>The entry written contains the ledger id, the entry id, the last add confirmed and the payload. The last add confirmed is the last entry which had been acknowledged to the client when this entry was written. Sending this with the entry speeds up recovery of the ledger in the case that the writer crashes.</p>
-
-<p>Another client can also read entries in the ledger up as far as the last add confirmed, as we guarantee that all entries thus far have been replicated on Qa nodes, and therefore all future readers will be able to also read it. However, to read like this, the ledger should be opened with a non-fencing open. Otherwise, it would kill the writer.</p>
-
-<p>If a node fails to acknowledge a write, the writer will create a new ensemble by replacing the failed node in the current ensemble. It creates a new fragment with this ensemble, starting from the first message that has not been acknowledged to the client. Creating the new fragment involves making a CAS write to the metadata. If the CAS write fails, someone else has modified something in the ledger metadata. This concurrent modification could have been caused by recovery or <span class [...]
-
-<h3 id="closing-a-ledger-as-a-writer">Closing a ledger as a writer</h3>
-
-<p>Closing a ledger is straightforward for a writer. The writer makes a CAS write to the metadata, changing the state to <code class="highlighter-rouge">CLOSED</code> and setting the last entry of the ledger to the last entry which we have acknowledged to the client.</p>
-
-<p>If the CAS write fails, it means someone else has modified the metadata. We reread the metadata, and retry closing as long as the state of the ledger is still <code class="highlighter-rouge">OPEN</code>. If the state is <code class="highlighter-rouge">IN_RECOVERY</code> we send an error to the client. If the state is <code class="highlighter-rouge">CLOSED</code> and the last entry is the same as the last entry we have acknowledged to the client, we complete the close operation success [...]
-
-<h3 id="closing-a-ledger-as-a-reader">Closing a ledger as a reader</h3>
-
-<p>A reader can also force a ledger to close. Forcing the ledger to close will prevent any writer from adding new entries to the ledger. This is called <span class="pop" id="fencing-popover">fencing</span>. This can occur when a writer has crashed or become unavailable, and a new writer wants to take over writing to the log. The new writer must ensure that it has seen all updates from the previous writer, and prevent the previous writer from making any new updates before making any updat [...]
-
-<p>To recover a ledger, we first update the state in the metadata to IN_RECOVERY. We then send a fence message to all the bookies in the last fragment of the ledger. When a bookie receives a fence message for a ledger, the fenced state of the ledger is persisted to disk. Once we receive a response from at least (<strong>Q<sub>w</sub></strong> - <strong>Q<sub>a</sub></strong>)+1 bookies from each write quorum in the ensemble, the ledger is fenced.</p>
-
-<p>By ensuring we have received a response from at last (<strong>Q<sub>w</sub></strong> - <strong>Q<sub>a</sub></strong>) + 1 bookies in each write quorum, we ensure that, if the old writer is alive and tries to add a new entry there will be no write quorum in which Qa bookies will accept the write. If the old writer tries to update the ensemble, it will fail on the CAS metadata write, and then see that the ledger is in IN_RECOVERY state, and that it therefore shouldn’t try to write to it.</p>
-
-<p>The old writer will be able to write entries to individual bookies (we can’t guarantee that the fence message reaches all bookies), but as it will not be able reach ack quorum, it will not be able to send a success response to its client. The client will get a LedgerFenced error instead.</p>
-
-<p>It is important to note that when you get a ledger fenced message for an entry, it doesn’t mean that the entry has not been written. It means that the entry may or may not have been written, and this can only be determined after the ledger is recovered. In effect, LedgerFenced should be treated like a timeout.</p>
-
-<p>Once the ledger is fenced, recovery can begin. Recovery means finding the last entry of the ledger and closing the ledger. To find the last entry of the ledger, the client asks all bookies for the highest last add confirmed value they have seen. It waits until it has received a response at least (<strong>Q<sub>w</sub></strong> - <strong>Q<sub>a</sub></strong>) + 1 bookies from each write quorum, and takes the highest response as the entry id to start reading forward from. It then star [...]
-
-<h2 id="ledgers-to-logs">Ledgers to logs</h2>
-
-<p>In BookKeeper, <span class="pop" id="ledger-popover">ledgers</span> can be used to build a replicated log for your system. All guarantees provided by BookKeeper are at the ledger level. Guarantees on the whole log can be built using the ledger guarantees and any consistent datastore with a compare-and-swap (CAS) primitive. BookKeeper uses ZooKeeper as the datastore but others could theoretically be used.</p>
-
-<p>A log in BookKeeper is built from some number of ledgers, with a fixed order. A ledger represents a single segment of the log. A ledger could be the whole period that one node was the leader, or there could be multiple ledgers for a single period of leadership. However, there can only ever be one leader that adds entries to a single ledger. Ledgers cannot be reopened for writing once they have been closed/recovered.</p>
-
-<blockquote>
-  <p>BookKeeper does <em>not</em> provide leader election. You must use a system like ZooKeeper for this.</p>
-</blockquote>
-
-<p>In many cases, leader election is really leader suggestion. Multiple nodes could think that they are leader at any one time. It is the job of the log to guarantee that only one can write changes to the system.</p>
-
-<h3 id="opening-a-log">Opening a log</h3>
-
-<p>Once a node thinks it is leader for a particular log, it must take the following steps:</p>
-
-<ol>
-  <li>Read the list of ledgers for the log</li>
-  <li><span class="pop" id="fencing-popover">Fence</span> the last two ledgers in the list. Two ledgers are fenced because because the writer may be writing to the second-to-last ledger while adding the last ledger to the list.</li>
-  <li>Create a new ledger</li>
-  <li>Add the new ledger to the ledger list</li>
-  <li>Write the new ledger back to the datastore using a CAS operation</li>
-</ol>
-
-<p>The fencing in step 2 and the CAS operation in step 5 prevent two nodes from thinking that they have leadership at any one time.</p>
-
-<p>The CAS operation will fail if the list of ledgers has changed between reading it and writing back the new list. When the CAS operation fails, the leader must start at step 1 again. Even better, they should check that they are in fact still the leader with the system that is providing leader election. The protocol will work correctly without this step, though it will be able to make very little progress if two nodes think they are leader and are duelling for the log.</p>
-
-<p>The node must not serve any writes until step 5 completes successfully.</p>
-
-<h3 id="rolling-ledgers">Rolling ledgers</h3>
-
-<p>The leader may wish to close the current ledger and open a new one every so often. Ledgers can only be deleted as a whole. If you don’t roll the log, you won’t be able to clean up old entries in the log without a leader change. By closing the current ledger and adding a new one, the leader allows the log to be truncated whenever that data is no longer needed. The steps for rolling the log is similar to those for creating a new ledger.</p>
-
-<ol>
-  <li>Create a new ledger</li>
-  <li>Add the new ledger to the ledger list</li>
-  <li>Write the new ledger list to the datastore using CAS</li>
-  <li>Close the previous ledger</li>
-</ol>
-
-<p>By deferring the closing of the previous ledger until step 4, we can continue writing to the log while we perform metadata update operations to add the new ledger. This is safe as long as you fence the last 2 ledgers when acquiring leadership.</p>
-
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">The BookKeeper protocol</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#ledgers">Ledgers</a></li>
-<li class="toc-entry toc-h3"><a href="#ledger-metadata">Ledger metadata</a></li>
-<li class="toc-entry toc-h3"><a href="#ensembles">Ensembles</a></li>
-<li class="toc-entry toc-h3"><a href="#write-quorums">Write quorums</a></li>
-<li class="toc-entry toc-h3"><a href="#ack-quorums">Ack quorums</a></li>
-<li class="toc-entry toc-h3"><a href="#guarantees">Guarantees</a></li>
-<li class="toc-entry toc-h2"><a href="#writing-to-ledgers">Writing to ledgers</a></li>
-<li class="toc-entry toc-h3"><a href="#closing-a-ledger-as-a-writer">Closing a ledger as a writer</a></li>
-<li class="toc-entry toc-h3"><a href="#closing-a-ledger-as-a-reader">Closing a ledger as a reader</a></li>
-<li class="toc-entry toc-h2"><a href="#ledgers-to-logs">Ledgers to logs</a></li>
-<li class="toc-entry toc-h3"><a href="#opening-a-log">Opening a log</a></li>
-<li class="toc-entry toc-h3"><a href="#rolling-ledgers">Rolling ledgers</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/example/index.html b/content/docs/example/index.html
deleted file mode 100644
index da3d6cc..0000000
--- a/content/docs/example/index.html
+++ /dev/null
@@ -1,511 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Example doc</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Example doc</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">Just for experimentation purposes.</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p><span class="pop" id="ledger-popover">ledger</span></p>
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Example doc</h2>
-  <ul class="section-nav">
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/getting-started/concepts/index.html b/content/docs/getting-started/concepts/index.html
deleted file mode 100644
index e38a535..0000000
--- a/content/docs/getting-started/concepts/index.html
+++ /dev/null
@@ -1,810 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - BookKeeper concepts and architecture</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">BookKeeper concepts and architecture</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">The core components and how they work</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>BookKeeper is a service that provides persistent storage of streams of log <a href="#entries">entries</a>—aka <em>records</em>—in sequences called <a href="#ledgers">ledgers</a>. BookKeeper replicates stored entries across multiple servers.</p>
-
-<h2 id="basic-terms">Basic terms</h2>
-
-<p>In BookKeeper:</p>
-
-<ul>
-  <li>each unit of a log is an <a href="#entries"><em>entry</em></a> (aka record)</li>
-  <li>streams of log entries are called <a href="#ledgers"><em>ledgers</em></a></li>
-  <li>individual servers storing ledgers of entries are called <a href="#bookies"><em>bookies</em></a></li>
-</ul>
-
-<p>BookKeeper is designed to be reliable and resilient to a wide variety of failures. Bookies can crash, corrupt data, or discard data, but as long as there are enough bookies behaving correctly in the ensemble the service as a whole will behave correctly.</p>
-
-<h2 id="entries">Entries</h2>
-
-<blockquote>
-  <p><strong>Entries</strong> contain the actual data written to ledgers, along with some important metadata.</p>
-</blockquote>
-
-<p>BookKeeper entries are sequences of bytes that are written to <a href="#ledgers">ledgers</a>. Each entry has the following fields:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Field</th>
-      <th style="text-align: left">Java type</th>
-      <th style="text-align: left">Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left">Ledger number</td>
-      <td style="text-align: left"><code class="highlighter-rouge">long</code></td>
-      <td style="text-align: left">The ID of the ledger to which the entry has been written</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Entry number</td>
-      <td style="text-align: left"><code class="highlighter-rouge">long</code></td>
-      <td style="text-align: left">The unique ID of the entry</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Last confirmed (LC)</td>
-      <td style="text-align: left"><code class="highlighter-rouge">long</code></td>
-      <td style="text-align: left">The ID of the last recorded entry</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Data</td>
-      <td style="text-align: left"><code class="highlighter-rouge">byte[]</code></td>
-      <td style="text-align: left">The entry’s data (written by the client application)</td>
-    </tr>
-    <tr>
-      <td style="text-align: left">Authentication code</td>
-      <td style="text-align: left"><code class="highlighter-rouge">byte[]</code></td>
-      <td style="text-align: left">The message auth code, which includes <em>all</em> other fields in the entry</td>
-    </tr>
-  </tbody>
-</table>
-
-<h2 id="ledgers">Ledgers</h2>
-
-<blockquote>
-  <p><strong>Ledgers</strong> are the basic unit of storage in BookKeeper.</p>
-</blockquote>
-
-<p>Ledgers are sequences of entries, while each entry is a sequence of bytes. Entries are written to a ledger:</p>
-
-<ul>
-  <li>sequentially, and</li>
-  <li>at most once.</li>
-</ul>
-
-<p>This means that ledgers have <em>append-only</em> semantics. Entries cannot be modified once they’ve been written to a ledger. Determining the proper write order is the responsbility of <a href="#clients">client applications</a>.</p>
-
-<h2 id="clients-and-apis">Clients and APIs</h2>
-
-<blockquote>
-  <p>BookKeeper clients have two main roles: they create and delete ledgers, and they read entries from and write entries to ledgers.</p>
-
-  <p>BookKeeper provides both a lower-level and a higher-level API for ledger interaction.</p>
-</blockquote>
-
-<p>There are currently two APIs that can be used for interacting with BookKeeper:</p>
-
-<ul>
-  <li>The <a href="../../api/ledger-api">ledger API</a> is a lower-level API that enables you to interact with <span class="pop" id="ledger-popover">ledgers</span> directly.</li>
-  <li>The <a href="../../api/distributedlog-api">DistributedLog API</a> is a higher-level API that enables you to use BookKeeper without directly interacting with ledgers.</li>
-</ul>
-
-<p>In general, you should choose the API based on how much granular control you need over ledger semantics. The two APIs can also both be used within a single application.</p>
-
-<h2 id="bookies">Bookies</h2>
-
-<blockquote>
-  <p><strong>Bookies</strong> are individual BookKeeper servers that handle ledgers (more specifically, fragments of ledgers). Bookies function as part of an ensemble.</p>
-</blockquote>
-
-<p>A bookie is an individual BookKeeper storage server. Individual bookies store fragments of ledgers, not entire ledgers (for the sake of performance). For any given ledger <strong>L</strong>, an <em>ensemble</em> is the group of bookies storing the entries in <strong>L</strong>.</p>
-
-<p>Whenever entries are written to a ledger, those entries are <span class="pop" id="striped-popover">striped</span> across the ensemble (written to a sub-group of bookies rather than to all bookies).</p>
-
-<h3 id="motivation">Motivation</h3>
-
-<blockquote>
-  <p>BookKeeper was initially inspired by the NameNode server in HDFS but its uses now extend far beyond this.</p>
-</blockquote>
-
-<p>The initial motivation for BookKeeper comes from the <a href="http://hadoop.apache.org/">Hadoop</a> ecosystem. In the <a href="https://wiki.apache.org/hadoop/HDFS">Hadoop Distributed File System</a> (HDFS), a special node called the <a href="https://wiki.apache.org/hadoop/NameNode">NameNode</a> logs all operations in a reliable fashion, which ensures that recovery is possible in case of crashes.</p>
-
-<p>The NameNode, however, served only as initial inspiration for BookKeeper. The applications for BookKeeper extend far beyond this and include essentially any application that requires an append-based storage system. BookKeeper provides a number of advantages for such applications:</p>
-
-<ul>
-  <li>Highly efficient writes</li>
-  <li>High fault tolerance via replication of messages within ensembles of bookies</li>
-  <li>High throughput for write operations via <span class="pop" id="striping-popover">striping</span> (across as many bookies as you wish)</li>
-</ul>
-
-<h2 id="metadata-storage">Metadata storage</h2>
-
-<p>BookKeeper requires a metadata storage service to store information related to <a href="#ledgers">ledgers</a> and available bookies. BookKeeper currently uses <a href="https://zookeeper.apache.org">ZooKeeper</a> for this and other tasks.</p>
-
-<h2 id="data-management-in-bookies">Data management in bookies</h2>
-
-<p>Bookies manage data in a <a href="https://en.wikipedia.org/wiki/Log-structured_file_system">log-structured</a> way, which is implemented using three types of files:</p>
-
-<ul>
-  <li><a href="#journals">journals</a></li>
-  <li><a href="#entry-logs">entry logs</a></li>
-  <li><a href="#index-files">index files</a></li>
-</ul>
-
-<h3 id="journals">Journals</h3>
-
-<p>A journal file contains BookKeeper transaction logs. Before any update to a ledger takes place, the bookie ensures that a transaction describing the update is written to non-volatile storage. A new journal file is created once the bookie starts or the older journal file reaches the journal file size threshold.</p>
-
-<h3 id="entry-logs">Entry logs</h3>
-
-<p>An entry log file manages the written entries received from BookKeeper clients. Entries from different ledgers are aggregated and written sequentially, while their offsets are kept as pointers in a <a href="#ledger-cache">ledger cache</a> for fast lookup.</p>
-
-<p>A new entry log file is created once the bookie starts or the older entry log file reaches the entry log size threshold. Old entry log files are removed by the Garbage Collector Thread once they are not associated with any active ledger.</p>
-
-<h3 id="index-files">Index files</h3>
-
-<p>An index file is created for each ledger, which comprises a header and several fixed-length index pages that record the offsets of data stored in entry log files.</p>
-
-<p>Since updating index files would introduce random disk I/O index files are updated lazily by a sync thread running in the background. This ensures speedy performance for updates. Before index pages are persisted to disk, they are gathered in a ledger cache for lookup.</p>
-
-<h3 id="ledger-cache">Ledger cache</h3>
-
-<p>Ledger indexes pages are cached in a memory pool, which allows for more efficient management of disk head scheduling.</p>
-
-<h3 id="adding-entries">Adding entries</h3>
-
-<p>When a client instructs a <span class="pop" id="bookie-popover">bookie</span> to write an entry to a ledger, the entry will go through the following steps to be persisted on disk:</p>
-
-<ol>
-  <li>The entry is appended to an <a href="#entry-logs">entry log</a></li>
-  <li>The index of the entry is updated in the <a href="#ledger-cache">ledger cache</a></li>
-  <li>A transaction corresponding to this entry update is appended to the <a href="#journals">journal</a></li>
-  <li>A response is sent to the BookKeeper client</li>
-</ol>
-
-<blockquote>
-  <p>For performance reasons, the entry log buffers entries in memory and commits them in batches, while the ledger cache holds index pages in memory and flushes them lazily. This process is described in more detail in the <a href="#data-flush">Data flush</a> section below.</p>
-</blockquote>
-
-<h3 id="data-flush">Data flush</h3>
-
-<p>Ledger index pages are flushed to index files in the following two cases:</p>
-
-<ul>
-  <li>The ledger cache memory limit is reached. There is no more space available to hold newer index pages. Dirty index pages will be evicted from the ledger cache and persisted to index files.</li>
-  <li>A background thread synchronous thread is responsible for flushing index pages from the ledger cache to index files periodically.</li>
-</ul>
-
-<p>Besides flushing index pages, the sync thread is responsible for rolling journal files in case that journal files use too much disk space. The data flush flow in the sync thread is as follows:</p>
-
-<ul>
-  <li>A <code class="highlighter-rouge">LastLogMark</code> is recorded in memory. The <code class="highlighter-rouge">LastLogMark</code> indicates that those entries before it have been persisted (to both index and entry log files) and contains two parts:
-    <ol>
-      <li>A <code class="highlighter-rouge">txnLogId</code> (the file ID of a journal)</li>
-      <li>A <code class="highlighter-rouge">txnLogPos</code> (offset in a journal)</li>
-    </ol>
-  </li>
-  <li>
-    <p>Dirty index pages are flushed from the ledger cache to the index file, and entry log files are flushed to ensure that all buffered entries in entry log files are persisted to disk.</p>
-
-    <p>Ideally, a bookie only needs to flush index pages and entry log files that contain entries before <code class="highlighter-rouge">LastLogMark</code>. There is, however, no such information in the ledger and entry log mapping to journal files. Consequently, the thread flushes the ledger cache and entry log entirely here, and may flush entries after the <code class="highlighter-rouge">LastLogMark</code>. Flushing more is not a problem, though, just redundant.</p>
-  </li>
-  <li>The <code class="highlighter-rouge">LastLogMark</code> is persisted to disk, which means that entries added before <code class="highlighter-rouge">LastLogMark</code> whose entry data and index page were also persisted to disk. It is now time to safely remove journal files created earlier than <code class="highlighter-rouge">txnLogId</code>.</li>
-</ul>
-
-<p>If the bookie has crashed before persisting <code class="highlighter-rouge">LastLogMark</code> to disk, it still has journal files containing entries for which index pages may not have been persisted. Consequently, when this bookie restarts, it inspects journal files to restore those entries and data isn’t lost.</p>
-
-<p>Using the above data flush mechanism, it is safe for the sync thread to skip data flushing when the bookie shuts down. However, in the entry logger it uses a buffered channel to write entries in batches and there might be data buffered in the buffered channel upon a shut down. The bookie needs to ensure that the entry log flushes its buffered data during shutdown. Otherwise, entry log files become corrupted with partial entries.</p>
-
-<h3 id="data-compaction">Data compaction</h3>
-
-<p>On bookies, entries of different ledgers are interleaved in entry log files. A bookie runs a garbage collector thread to delete un-associated entry log files to reclaim disk space. If a given entry log file contains entries from a ledger that has not been deleted, then the entry log file would never be removed and the occupied disk space never reclaimed. In order to avoid such a case, a bookie server compacts entry log files in a garbage collector thread to reclaim disk space.</p>
-
-<p>There are two kinds of compaction running with different frequency: minor compaction and major compaction. The differences between minor compaction and major compaction lies in their threshold value and compaction interval.</p>
-
-<ul>
-  <li>The garbage collection threshold is the size percentage of an entry log file occupied by those undeleted ledgers. The default minor compaction threshold is 0.2, while the major compaction threshold is 0.8.</li>
-  <li>The garbage collection interval is how frequently to run the compaction. The default minor compaction interval is 1 hour, while the major compaction threshold is 1 day.</li>
-</ul>
-
-<blockquote>
-  <p>If either the threshold or interval is set to less than or equal to zero, compaction is disabled.</p>
-</blockquote>
-
-<p>The data compaction flow in the garbage collector thread is as follows:</p>
-
-<ul>
-  <li>The thread scans entry log files to get their entry log metadata, which records a list of ledgers comprising an entry log and their corresponding percentages.</li>
-  <li>With the normal garbage collection flow, once the bookie determines that a ledger has been deleted, the ledger will be removed from the entry log metadata and the size of the entry log reduced.</li>
-  <li>If the remaining size of an entry log file reaches a specified threshold, the entries of active ledgers in the entry log will be copied to a new entry log file.</li>
-  <li>Once all valid entries have been copied, the old entry log file is deleted.</li>
-</ul>
-
-<h2 id="zookeeper-metadata">ZooKeeper metadata</h2>
-
-<p>BookKeeper requires a ZooKeeper installation for storing <a href="#ledger">ledger</a> metadata. Whenever you construct a <a href="/javadoc/org/apache/bookkeeper/client/BookKeeper"><code class="highlighter-rouge">BookKeeper</code></a> client object, you need to pass a list of ZooKeeper servers as a parameter to the constructor, like this:</p>
-
-<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="n">String</span> <span class="n">zkConnectionString</span> <span class="o">=</span> <span class="s">"127.0.0.1:2181"</span><span class="o">;</span>
-<span class="n">BookKeeper</span> <span class="n">bkClient</span> <span class="o">=</span> <span class="k">new</span> <span class="n">BookKeeper</span><span class="o">(</span><span class="n">zkConnectionString</span><span class="o">);</span>
-</code></pre>
-</div>
-
-<blockquote>
-  <p>For more info on using the BookKeeper Java client, see <a href="../../api/ledger-api#the-java-ledger-api-client">this guide</a>.</p>
-</blockquote>
-
-<h2 id="ledger-manager">Ledger manager</h2>
-
-<p>A <em>ledger manager</em> handles ledgers’ metadata (which is stored in ZooKeeper). BookKeeper offers two types of ledger managers: the <a href="#flat-ledger-manager">flat ledger manager</a> and the <a href="#hierarchical-ledger-manager">hierarchical ledger manager</a>. Both ledger managers extend the <a href="/javadoc/org/apache/bookkeeper/meta/AbstractZkLedgerManager"><code class="highlighter-rouge">AbstractZkLedgerManager</code></a> abstract class.</p>
-
-<blockquote>
-  <h4 id="use-the-flat-ledger-manager-in-most-cases">Use the flat ledger manager in most cases</h4>
-  <p>The flat ledger manager is the default and is recommended for nearly all use cases. The hierarchical ledger manager is better suited only for managing very large numbers of BookKeeper ledgers (&gt; 50,000).</p>
-</blockquote>
-
-<h3 id="flat-ledger-manager">Flat ledger manager</h3>
-
-<p>The <em>flat ledger manager</em>, implemented in the <a href="/javadoc/org/apache/bookkeeper/meta/FlatLedgerManager.html"><code class="highlighter-rouge">FlatLedgerManager</code></a> class, stores all ledgers’ metadata in child nodes of a single ZooKeeper path. The flat ledger manager creates <a href="https://zookeeper.apache.org/doc/trunk/zookeeperProgrammers.html#Sequence+Nodes+--+Unique+Naming">sequential nodes</a> to ensure the uniqueness of the ledger ID and prefixes all nodes wi [...]
-
-<p>The flat ledger manager’s garbage collection follow proceeds as follows:</p>
-
-<ul>
-  <li>All existing ledgers are fetched from ZooKeeper (<code class="highlighter-rouge">zkActiveLedgers</code>)</li>
-  <li>All ledgers currently active within the bookie are fetched (<code class="highlighter-rouge">bkActiveLedgers</code>)</li>
-  <li>The currently actively ledgers are looped through to determine which ledgers don’t currently exist in ZooKeeper. Those are then garbage collected.</li>
-  <li>The <em>hierarchical ledger manager</em> stores ledgers’ metadata in two-level <a href="https://zookeeper.apache.org/doc/current/zookeeperOver.html#Nodes+and+ephemeral+nodes">znodes</a>.</li>
-</ul>
-
-<h3 id="hierarchical-ledger-manager">Hierarchical ledger manager</h3>
-
-<p>The <em>hierarchical ledger manager</em>, implemented in the <a href="/javadoc/org/apache/bookkeeper/meta/HierarchicalLedgerManager"><code class="highlighter-rouge">HierarchicalLedgerManager</code></a> class, first obtains a global unique ID from ZooKeeper using an <a href="https://zookeeper.apache.org/doc/current/api/org/apache/zookeeper/CreateMode.html#EPHEMERAL_SEQUENTIAL"><code class="highlighter-rouge">EPHEMERAL_SEQUENTIAL</code></a> znode. Since ZooKeeper’s sequence counter has  [...]
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="o">{</span>level1 <span class="o">(</span>2 digits<span class="o">)}{</span>level2 <span class="o">(</span>4 digits<span class="o">)}{</span>level3 <span class="o">(</span>4 digits<span class="o">)}</span>
-</code></pre>
-</div>
-
-<p>These three parts are used to form the actual ledger node path to store ledger metadata:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="o">{</span>ledgers_root_path<span class="o">}</span>/<span class="o">{</span>level1<span class="o">}</span>/<span class="o">{</span>level2<span class="o">}</span>/L<span class="o">{</span>level3<span class="o">}</span>
-</code></pre>
-</div>
-
-<p>For example, ledger 0000000001 is split into three parts, 00, 0000, and 00001, and stored in znode <code class="highlighter-rouge">/{ledgers_root_path}/00/0000/L0001</code>. Each znode could have as many 10,000 ledgers, which avoids the problem of the child list being larger than the maximum ZooKeeper packet size (which is the <a href="https://issues.apache.org/jira/browse/BOOKKEEPER-39">limitation</a> that initially prompted the creation of the hierarchical ledger manager).</p>
-
-        </section>
-
-        
-        <nav class="pagination is-centered">
-          
-          <a class="pagination-previous" href="/docs/getting-started/run-locally">Previous</a>
-          
-          
-          <a class="pagination-next" href="/docs/applications/java-client">Next</a>
-          
-          <ul class="pagination-list"></ul>
-        </nav>
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">BookKeeper concepts and architecture</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#basic-terms">Basic terms</a></li>
-<li class="toc-entry toc-h2"><a href="#entries">Entries</a></li>
-<li class="toc-entry toc-h2"><a href="#ledgers">Ledgers</a></li>
-<li class="toc-entry toc-h2"><a href="#clients-and-apis">Clients and APIs</a></li>
-<li class="toc-entry toc-h2"><a href="#bookies">Bookies</a></li>
-<li class="toc-entry toc-h3"><a href="#motivation">Motivation</a></li>
-<li class="toc-entry toc-h2"><a href="#metadata-storage">Metadata storage</a></li>
-<li class="toc-entry toc-h2"><a href="#data-management-in-bookies">Data management in bookies</a></li>
-<li class="toc-entry toc-h3"><a href="#journals">Journals</a></li>
-<li class="toc-entry toc-h3"><a href="#entry-logs">Entry logs</a></li>
-<li class="toc-entry toc-h3"><a href="#index-files">Index files</a></li>
-<li class="toc-entry toc-h3"><a href="#ledger-cache">Ledger cache</a></li>
-<li class="toc-entry toc-h3"><a href="#adding-entries">Adding entries</a></li>
-<li class="toc-entry toc-h3"><a href="#data-flush">Data flush</a></li>
-<li class="toc-entry toc-h3"><a href="#data-compaction">Data compaction</a></li>
-<li class="toc-entry toc-h2"><a href="#zookeeper-metadata">ZooKeeper metadata</a></li>
-<li class="toc-entry toc-h2"><a href="#ledger-manager">Ledger manager</a></li>
-<li class="toc-entry toc-h4"><a href="#use-the-flat-ledger-manager-in-most-cases">Use the flat ledger manager in most cases</a></li>
-<li class="toc-entry toc-h3"><a href="#flat-ledger-manager">Flat ledger manager</a></li>
-<li class="toc-entry toc-h3"><a href="#hierarchical-ledger-manager">Hierarchical ledger manager</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/getting-started/installation/index.html b/content/docs/getting-started/installation/index.html
deleted file mode 100644
index a04127e..0000000
--- a/content/docs/getting-started/installation/index.html
+++ /dev/null
@@ -1,650 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - BookKeeper installation</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">BookKeeper installation</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">Download or clone BookKeeper and build it locally</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          
-<p>You can install BookKeeper either by <a href="#download">downloading</a> a <a href="http://www.gzip.org/">GZipped</a> tarball package or <a href="#clone">cloning</a> the BookKeeper repository.</p>
-
-<h2 id="requirements">Requirements</h2>
-
-<ul>
-  <li><a href="http://www.opengroup.org/unix">Unix environment</a></li>
-  <li><a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Java Development Kit 1.6</a> or later</li>
-  <li><a href="https://maven.apache.org/install.html">Maven 3.0</a> or later</li>
-</ul>
-
-<h2 id="download">Download</h2>
-
-<p>You can download Apache BookKeeper releases from one of many <a href="http://www.apache.org/dyn/closer.cgi/bookkeeper">Apache mirrors</a>. Here’s an example for the <a href="http://apache.claz.org/bookkeeper">apache.claz.org</a> mirror:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>curl -O http://apache.claz.org/bookkeeper/bookkeeper-4.5.0/bookkeeper-4.5.0-src.tar.gz
-<span class="gp">$ </span>tar xvf bookkeeper-4.5.0-src.tar.gz
-<span class="gp">$ </span><span class="nb">cd </span>bookkeeper-4.5.0
-</code></pre>
-</div>
-
-<h2 id="clone">Clone</h2>
-
-<p>To build BookKeeper from source, clone the repository, either from the <a href="https://github.com/apache/bookkeeper">GitHub mirror</a> or from the <a href="http://git.apache.org/bookkeeper.git/">Apache repository</a>:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="c"># From the GitHub mirror</span>
-<span class="gp">$ </span>git clone https://github.com/apache/bookkeeper
-
-<span class="c"># From Apache directly</span>
-<span class="gp">$ </span>git clone git://git.apache.org/bookkeeper.git/
-</code></pre>
-</div>
-
-<h2 id="build-using-maven">Build using Maven</h2>
-
-<p>Once you have the BookKeeper on your local machine, either by <a href="#download">downloading</a> or <a href="#clone">cloning</a> it, you can then build BookKeeper from source using Maven:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>mvn package
-</code></pre>
-</div>
-
-<blockquote>
-  <p>You can skip tests by adding the <code class="highlighter-rouge">-DskipTests</code> flag when running <code class="highlighter-rouge">mvn package</code>.</p>
-</blockquote>
-
-<h3 id="useful-maven-commands">Useful Maven commands</h3>
-
-<p>Some other useful Maven commands beyond <code class="highlighter-rouge">mvn package</code>:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Command</th>
-      <th style="text-align: left">Action</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn clean</code></td>
-      <td style="text-align: left">Removes build artifacts</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn compile</code></td>
-      <td style="text-align: left">Compiles JAR files from Java sources</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn compile findbugs:findbugs</code></td>
-      <td style="text-align: left">Compile using the Maven <a href="http://gleclaire.github.io/findbugs-maven-plugin">FindBugs</a> plugin</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn install</code></td>
-      <td style="text-align: left">Install the BookKeeper JAR locally in your local Maven cache (usually in the <code class="highlighter-rouge">~/.m2</code> directory)</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn deploy</code></td>
-      <td style="text-align: left">Deploy the BookKeeper JAR to the Maven repo (if you have the proper credentials)</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn verify</code></td>
-      <td style="text-align: left">Performs a wide variety of verification and validation tasks</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn apache-rat:check</code></td>
-      <td style="text-align: left">Run Maven using the <a href="http://creadur.apache.org/rat/apache-rat-plugin/">Apache Rat</a> plugin</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn compile javadoc:aggregate</code></td>
-      <td style="text-align: left">Build Javadocs locally</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><code class="highlighter-rouge">mvn package assembly:single</code></td>
-      <td style="text-align: left">Build a complete distribution using the Maven <a href="http://maven.apache.org/plugins/maven-assembly-plugin/">Assembly</a> plugin</td>
-    </tr>
-  </tbody>
-</table>
-
-<h2 id="package-directory">Package directory</h2>
-
-<p>The BookKeeper project contains several subfolders that you should be aware of:</p>
-
-<table>
-  <thead>
-    <tr>
-      <th style="text-align: left">Subfolder</th>
-      <th style="text-align: left">Contains</th>
-    </tr>
-  </thead>
-  <tbody>
-    <tr>
-      <td style="text-align: left"><a href="https://github.com/apache/bookkeeper/tree/master/bookkeeper-server"><code class="highlighter-rouge">bookkeeper-server</code></a></td>
-      <td style="text-align: left">The BookKeeper server and client</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><a href="https://github.com/apache/bookkeeper/tree/master/bookkeeper-benchmark"><code class="highlighter-rouge">bookkeeper-benchmark</code></a></td>
-      <td style="text-align: left">A benchmarking suite for measuring BookKeeper performance</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><a href="https://github.com/apache/bookkeeper/tree/master/bookkeeper-stats"><code class="highlighter-rouge">bookkeeper-stats</code></a></td>
-      <td style="text-align: left">A BookKeeper stats library</td>
-    </tr>
-    <tr>
-      <td style="text-align: left"><a href="https://github.com/apache/bookkeeper/tree/master/bookkeeper-stats-providers"><code class="highlighter-rouge">bookkeeper-stats-providers</code></a></td>
-      <td style="text-align: left">BookKeeper stats providers</td>
-    </tr>
-  </tbody>
-</table>
-
-        </section>
-
-        
-        <nav class="pagination is-centered">
-          
-          
-          <a class="pagination-next" href="/docs/getting-started/run-locally">Next</a>
-          
-          <ul class="pagination-list"></ul>
-        </nav>
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">BookKeeper installation</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#requirements">Requirements</a></li>
-<li class="toc-entry toc-h2"><a href="#download">Download</a></li>
-<li class="toc-entry toc-h2"><a href="#clone">Clone</a></li>
-<li class="toc-entry toc-h2"><a href="#build-using-maven">Build using Maven</a></li>
-<li class="toc-entry toc-h3"><a href="#useful-maven-commands">Useful Maven commands</a></li>
-<li class="toc-entry toc-h2"><a href="#package-directory">Package directory</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/getting-started/run-locally/index.html b/content/docs/getting-started/run-locally/index.html
deleted file mode 100644
index 0f564fb..0000000
--- a/content/docs/getting-started/run-locally/index.html
+++ /dev/null
@@ -1,522 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Run bookies locally</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Run bookies locally</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p><span class="pop" id="bookie-popover">Bookies</span> are individual BookKeeper servers. You can run an ensemble of bookies locally on a single machine using the <a href="../../reference/cli#bookkeeper-localbookie"><code class="highlighter-rouge">localbookie</code></a> command of the <code class="highlighter-rouge">bookkeeper</code> CLI tool and specifying the number of bookies you’d like to include in the ensemble.</p>
-
-<p>This would start up an ensemble with 10 bookies:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookeeper-server/bin/bookeeper localbookie 10
-</code></pre>
-</div>
-
-<blockquote>
-  <p>When you start up an ensemble using <code class="highlighter-rouge">localbookie</code>, all bookies run in a single JVM process.</p>
-</blockquote>
-
-        </section>
-
-        
-        <nav class="pagination is-centered">
-          
-          <a class="pagination-previous" href="/docs/getting-started/installation">Previous</a>
-          
-          
-          <a class="pagination-next" href="/docs/getting-started/concepts">Next</a>
-          
-          <ul class="pagination-list"></ul>
-        </nav>
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/reference/cli/index.html b/content/docs/reference/cli/index.html
deleted file mode 100644
index c6afbb0..0000000
--- a/content/docs/reference/cli/index.html
+++ /dev/null
@@ -1,1516 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - BookKeeper CLI tool reference</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">BookKeeper CLI tool reference</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">A reference guide to the command-line tools that you can use to administer BookKeeper</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          
-<h2 id="bookkeeper">bookkeeper</h2>
-
-<p>Manages bookies.</p>
-
-<h4>Environment variables</h4>
-
-<table>
-  <thead>
-    <tr>
-      <th>Environment variable</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>BOOKIE_LOG_CONF</code></td>
-      <td><p>The Log4j configuration file.</p>
-</td>
-      <td><code>${bookkeeperHome}/bookkeeper-server/conf/log4j.properties</code></td>
-    </tr>
-    
-    <tr>
-      <td><code>BOOKIE_CONF</code></td>
-      <td><p>The configuration file for the bookie.</p>
-</td>
-      <td><code>${bookkeeperHome}/bookkeeper-server/conf/bk_server.conf</code></td>
-    </tr>
-    
-    <tr>
-      <td><code>BOOKIE_EXTRA_CLASSPATH</code></td>
-      <td><p>Extra paths to add to BookKeeper’s <a href="https://en.wikipedia.org/wiki/Classpath_(Java)">classpath</a>.</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr>
-      <td><code>ENTRY_FORMATTER_CLASS</code></td>
-      <td><p>The entry formatter class used to format entries.</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr>
-      <td><code>BOOKIE_PID_DIR</code></td>
-      <td><p>The directory where the bookie server PID file is stored.</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr>
-      <td><code>BOOKIE_STOP_TIMEOUT</code></td>
-      <td><p>The wait time before forcefully killing the bookie server instance if stopping it is not successful.</p>
-</td>
-      <td></td>
-    </tr>
-    
-  </tbody>
-</table>
-
-<h4>Commands</h4>
-
-<h3 id="bookkeeper-bookie">bookie</h3>
-
-<p>Starts up a bookie.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper bookie 
-</code></pre>
-</div>
-<hr />
-
-<h3 id="bookkeeper-localbookie">localbookie</h3>
-
-<p>Starts up an ensemble of N bookies in a single JVM process. Typically used for local experimentation and development.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper localbookie N
-</code></pre>
-</div>
-<hr />
-
-<h3 id="bookkeeper-autorecovery">autorecovery</h3>
-
-<p>Runs the autorecovery service daemon.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper autorecovery 
-</code></pre>
-</div>
-<hr />
-
-<h3 id="bookkeeper-upgrade">upgrade</h3>
-
-<p>Upgrades the bookie’s filesystem.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper upgrade 
-</code></pre>
-</div>
-<hr />
-
-<h3 id="bookkeeper-shell">shell</h3>
-
-<p>Runs the bookie’s shell for admin commands.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell 
-</code></pre>
-</div>
-<hr />
-
-<h3 id="bookkeeper-help">help</h3>
-
-<p>Displays the help message for the <code class="highlighter-rouge">bookkeeper</code> tool.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper <span class="nb">help</span> 
-</code></pre>
-</div>
-
-<h2 id="the-bookkeeper-shell">The BookKeeper shell</h2>
-
-<h3 id="bookkeeper-shell-autorecovery">autorecovery</h3>
-
-<p>Enable or disable autorecovery in the cluster.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell autorecovery <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-enable</code></td>
-      <td>Enable autorecovery of underreplicated ledgers</td>
-    </tr>
-    
-    <tr>
-      <td><code>-disable</code></td>
-      <td>Disable autorecovery of underreplicated ledgers</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-bookieFormat">bookieFormat</h3>
-
-<p>Format the current server contents.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell bookieFormat <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-nonInteractive</code></td>
-      <td>Whether to confirm if old data exists.</td>
-    </tr>
-    
-    <tr>
-      <td><code>-force</code></td>
-      <td>If [nonInteractive] is specified, then whether to force delete the old data without prompt..?</td>
-    </tr>
-    
-    <tr>
-      <td><code>-deleteCookie</code></td>
-      <td>Delete its cookie on zookeeper</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-bookieinfo">bookieinfo</h3>
-
-<p>Retrieve bookie info such as free and total disk space.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell bookieinfo
-</code></pre>
-</div>
-
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-bookiesanity">bookiesanity</h3>
-
-<p>Sanity test for local bookie. Create ledger and write/read entries on the local bookie.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell bookiesanity <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-entries N</code></td>
-      <td>Total entries to be added for the test (default 10)</td>
-    </tr>
-    
-    <tr>
-      <td><code>-timeout N</code></td>
-      <td>Timeout for write/read operations in seconds (default 1)</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-decommissionbookie">decommissionbookie</h3>
-
-<p>Force trigger the Audittask and make sure all the ledgers stored in the decommissioning bookie are replicated.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell decommissionbookie
-</code></pre>
-</div>
-
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-deleteledger">deleteledger</h3>
-
-<p>Delete a ledger</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell deleteledger <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-ledgerid N</code></td>
-      <td>Ledger ID</td>
-    </tr>
-    
-    <tr>
-      <td><code>-force</code></td>
-      <td>Whether to force delete the Ledger without prompt..?</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-expandstorage">expandstorage</h3>
-
-<p>Add new empty ledger/index directories. Update the directories info in the conf file before running the command.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell expandstorage
-</code></pre>
-</div>
-
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-help">help</h3>
-
-<p>Displays the help message.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell <span class="nb">help</span>
-</code></pre>
-</div>
-
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-lastmark">lastmark</h3>
-
-<p>Print last log marker.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell lastmark
-</code></pre>
-</div>
-
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-ledger">ledger</h3>
-
-<p>Dump ledger index entries into readable format.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell ledger <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-m LEDGER_ID</code></td>
-      <td>Print meta information</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-ledgermetadata">ledgermetadata</h3>
-
-<p>Print the metadata for a ledger.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell ledgermetadata <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-ledgerid N</code></td>
-      <td>Ledger ID</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-listbookies">listbookies</h3>
-
-<p>List the bookies, which are running as either readwrite or readonly mode.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell listbookies <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-readwrite</code></td>
-      <td>Print readwrite bookies</td>
-    </tr>
-    
-    <tr>
-      <td><code>-readonly</code></td>
-      <td>Print readonly bookies</td>
-    </tr>
-    
-    <tr>
-      <td><code>-hostnames</code></td>
-      <td>Also print hostname of the bookie</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-listfilesondisc">listfilesondisc</h3>
-
-<p>List the files in JournalDirectory/LedgerDirectories/IndexDirectories.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell listfilesondisc <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-journal</code></td>
-      <td>Print list of journal files</td>
-    </tr>
-    
-    <tr>
-      <td><code>-entrylog</code></td>
-      <td>Print list of entryLog files</td>
-    </tr>
-    
-    <tr>
-      <td><code>-index</code></td>
-      <td>Print list of index files</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-listledgers">listledgers</h3>
-
-<p>List all ledgers in the cluster (this may take a long time).</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell listledgers <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-meta</code></td>
-      <td>Print metadata</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-listunderreplicated">listunderreplicated</h3>
-
-<p>List ledgers marked as underreplicated, with optional options to specify missing replica (BookieId) and to exclude missing replica.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell listunderreplicated <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-missingreplica N</code></td>
-      <td>Bookie Id of missing replica</td>
-    </tr>
-    
-    <tr>
-      <td><code>-excludingmissingreplica N</code></td>
-      <td>Bookie Id of missing replica to ignore</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-metaformat">metaformat</h3>
-
-<p>Format Bookkeeper metadata in Zookeeper.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell metaformat <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-nonInteractive</code></td>
-      <td>Whether to confirm if old data exists..?</td>
-    </tr>
-    
-    <tr>
-      <td><code>-force</code></td>
-      <td>If [nonInteractive] is specified, then whether to force delete the old data without prompt.</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-lostbookierecoverydelay">lostbookierecoverydelay</h3>
-
-<p>Setter and Getter for LostBookieRecoveryDelay value (in seconds) in Zookeeper.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell lostbookierecoverydelay <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-get</code></td>
-      <td>Get LostBookieRecoveryDelay value (in seconds)</td>
-    </tr>
-    
-    <tr>
-      <td><code>-set N</code></td>
-      <td>Set LostBookieRecoveryDelay value (in seconds)</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-readjournal">readjournal</h3>
-
-<p>Scan a journal file and format the entries into readable format.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell readjournal <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-msg JOURNAL_ID|JOURNAL_FILENAME</code></td>
-      <td>Print message body</td>
-    </tr>
-    
-    <tr>
-      <td><code>-dir</code></td>
-      <td>Journal directory (needed if more than one journal configured)</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-readledger">readledger</h3>
-
-<p>Read a range of entries from a ledger.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell readledger <span class="se">\</span>
-  &lt;ledger_id&gt; <span class="o">[</span>&lt;start_entry_id&gt; <span class="o">[</span>&lt;end_entry_id&gt;]]
-</code></pre>
-</div>
-
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-readlog">readlog</h3>
-
-<p>Scan an entry file and format the entries into readable format.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell readlog <span class="se">\</span>
-  &lt;entry_log_id | entry_log_file_name&gt; <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-msg</code></td>
-      <td>Print message body</td>
-    </tr>
-    
-    <tr>
-      <td><code>-ledgerid N</code></td>
-      <td>Ledger ID</td>
-    </tr>
-    
-    <tr>
-      <td><code>-entryid N</code></td>
-      <td>Entry ID</td>
-    </tr>
-    
-    <tr>
-      <td><code>-startpos N</code></td>
-      <td>Start Position</td>
-    </tr>
-    
-    <tr>
-      <td><code>-endpos</code></td>
-      <td>End Position</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-recover">recover</h3>
-
-<p>Recover the ledger data for failed bookie.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell recover <span class="se">\</span>
-  &lt;bookieSrc&gt; <span class="o">[</span>&lt;bookieDest&gt;] <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-deleteCookie</code></td>
-      <td>Delete cookie node for the bookie.</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-simpletest">simpletest</h3>
-
-<p>Simple test to create a ledger and write entries to it.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell simpletest <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-ensemble N</code></td>
-      <td>Ensemble size (default 3)</td>
-    </tr>
-    
-    <tr>
-      <td><code>-writeQuorum N</code></td>
-      <td>Write quorum size (default 2)</td>
-    </tr>
-    
-    <tr>
-      <td><code>ackQuorum N</code></td>
-      <td>Ack quorum size (default 2)</td>
-    </tr>
-    
-    <tr>
-      <td><code>-numEntries N</code></td>
-      <td>Entries to write (default 1000)</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-triggeraudit">triggeraudit</h3>
-
-<p>Force trigger the Audit by resetting the lostBookieRecoveryDelay.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell triggeraudit
-</code></pre>
-</div>
-
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-updatecookie">updatecookie</h3>
-
-<p>Update bookie id in cookie.</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell updatecookie <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-bookieId &lt;hostname|ip&gt;</code></td>
-      <td>Bookie Id</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-<hr />
-
-<h3 id="bookkeeper-shell-updateledgers">updateledgers</h3>
-
-<p>Update bookie id in ledgers (this may take a long time).</p>
-
-<h5>Usage</h5>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>bookkeeper-server/bin/bookkeeper shell updateledgers <span class="se">\</span>
-  &lt;options&gt;
-</code></pre>
-</div>
-
-<h5>Options</h5>
-
-<table>
-  <thead>
-    <tr>
-      <th>Flag</th>
-      <th>Description</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr>
-      <td><code>-bookieId &lt;hostname|ip&gt;</code></td>
-      <td>Bookie Id</td>
-    </tr>
-    
-    <tr>
-      <td><code>-updatespersec N</code></td>
-      <td>Number of ledgers updating per second (default 5 per sec)</td>
-    </tr>
-    
-    <tr>
-      <td><code>-limit N</code></td>
-      <td>Maximum number of ledgers to update (default no limit)</td>
-    </tr>
-    
-    <tr>
-      <td><code>-verbose</code></td>
-      <td>Print status of the ledger updation (default false)</td>
-    </tr>
-    
-    <tr>
-      <td><code>-printprogress N</code></td>
-      <td>Print messages on every configured seconds if verbose turned on (default 10 secs)</td>
-    </tr>
-    
-  </tbody>
-</table>
-<p><!-- if command.options --></p>
-
-<p><!-- for command in commands --></p>
-
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">BookKeeper CLI tool reference</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#bookkeeper">bookkeeper</a></li>
-<li class="toc-entry toc-h4"><a href="#environment-variables">Environment variables</a></li>
-<li class="toc-entry toc-h4"><a href="#commands">Commands</a></li>
-<li class="toc-entry toc-h3"><a href="#bookie">bookie</a></li>
-<li class="toc-entry toc-h5"><a href="#usage">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#localbookie">localbookie</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-1">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#autorecovery">autorecovery</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-2">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#upgrade">upgrade</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-3">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#shell">shell</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-4">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#help">help</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-5">Usage</a></li>
-<li class="toc-entry toc-h2"><a href="#the-bookkeeper-shell">The BookKeeper shell</a></li>
-<li class="toc-entry toc-h3"><a href="#autorecovery-1">autorecovery</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-6">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#bookieformat">bookieFormat</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-7">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-1">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#bookieinfo">bookieinfo</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-8">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#bookiesanity">bookiesanity</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-9">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-2">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#decommissionbookie">decommissionbookie</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-10">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#deleteledger">deleteledger</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-11">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-3">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#expandstorage">expandstorage</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-12">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#help-1">help</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-13">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#lastmark">lastmark</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-14">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#ledger">ledger</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-15">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-4">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#ledgermetadata">ledgermetadata</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-16">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-5">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#listbookies">listbookies</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-17">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-6">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#listfilesondisc">listfilesondisc</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-18">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-7">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#listledgers">listledgers</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-19">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-8">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#listunderreplicated">listunderreplicated</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-20">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-9">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#metaformat">metaformat</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-21">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-10">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#lostbookierecoverydelay">lostbookierecoverydelay</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-22">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-11">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#readjournal">readjournal</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-23">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-12">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#readledger">readledger</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-24">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#readlog">readlog</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-25">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-13">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#recover">recover</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-26">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-14">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#simpletest">simpletest</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-27">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-15">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#triggeraudit">triggeraudit</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-28">Usage</a></li>
-<li class="toc-entry toc-h3"><a href="#updatecookie">updatecookie</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-29">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-16">Options</a></li>
-<li class="toc-entry toc-h3"><a href="#updateledgers">updateledgers</a></li>
-<li class="toc-entry toc-h5"><a href="#usage-30">Usage</a></li>
-<li class="toc-entry toc-h5"><a href="#options-17">Options</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/reference/config/index.html b/content/docs/reference/config/index.html
deleted file mode 100644
index d0157ee..0000000
--- a/content/docs/reference/config/index.html
+++ /dev/null
@@ -1,1482 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - BookKeeper configuration</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">BookKeeper configuration</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        <h2 class="subtitle">A reference guide to all of BookKeeper's configurable parameters</h2>
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>The table below lists parameters that you can set to configure <span class="pop" id="bookie-popover">bookies</span>. All configuration takes place in the <code class="highlighter-rouge">bk_server.conf</code> file in the <code class="highlighter-rouge">bookkeeper-server/conf</code> directory of your <a href="../../getting-started/installing">BookKeeper installation</a>.</p>
-
-<h2 id="server-parameters">Server parameters</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="bookiePort">
-      <td><code>bookiePort</code></td>
-      <td><p>The port that the bookie server listens on.</p>
-</td>
-      <td><code>3181</code></td>
-    </tr>
-    
-    <tr id="journalDirectories">
-      <td><code>journalDirectories</code></td>
-      <td><p>The directories to which Bookkeeper outputs its write-ahead log (WAL).  Could define multi directories to store write head logs, separated by ‘,’.
-For example:
-  journalDirectories=/tmp/bk-journal1,/tmp/bk-journal2
-If journalDirectories is set, bookies will skip journalDirectory and use this setting directory.</p>
-</td>
-      <td><code>/tmp/bk-journal</code></td>
-    </tr>
-    
-    <tr id="journalDirectory">
-      <td><code>journalDirectory</code></td>
-      <td><p>The directory to which Bookkeeper outputs its write-ahead log (WAL).</p>
-</td>
-      <td><code>/tmp/bk-txn</code></td>
-    </tr>
-    
-    <tr id="allowMultipleDirsUnderSameDiskPartition">
-      <td><code>allowMultipleDirsUnderSameDiskPartition</code></td>
-      <td><p>Configure the bookie to allow/disallow multiple ledger/index/journal directories in the same filesystem disk partition</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr id="indexDirectories">
-      <td><code>indexDirectories</code></td>
-      <td><p>The directories in which index files are stored. If not specified, the value of <a href="#ledgerDirectories"><code class="highlighter-rouge">ledgerDirectories</code></a> will be used.</p>
-</td>
-      <td><code>/tmp/bk-data</code></td>
-    </tr>
-    
-    <tr id="minUsableSizeForIndexFileCreation">
-      <td><code>minUsableSizeForIndexFileCreation</code></td>
-      <td><p>Minimum safe usable size to be available in index directory for bookie to create index file while replaying journal at the time of bookie start in readonly mode (in bytes)</p>
-</td>
-      <td><code>1073741824</code></td>
-    </tr>
-    
-    <tr id="listeningInterface">
-      <td><code>listeningInterface</code></td>
-      <td><p>The network interface that the bookie should listen on. If not set, the bookie will listen on all interfaces.</p>
-</td>
-      <td><code>eth0</code></td>
-    </tr>
-    
-    <tr id="advertisedAddress">
-      <td><code>advertisedAddress</code></td>
-      <td><p>Configure a specific hostname or IP address that the bookie should use to advertise itself to
-clients. If not set, bookie will advertised its own IP address or hostname, depending on the
-<code class="highlighter-rouge">listeningInterface</code> and <code class="highlighter-rouge">useHostNameAsBookieID</code> settings.</p>
-</td>
-      <td><code>eth0</code></td>
-    </tr>
-    
-    <tr id="allowLoopback">
-      <td><code>allowLoopback</code></td>
-      <td><p>Whether the bookie is allowed to use a loopback interface as its primary
-interface (the interface it uses to establish its identity). By default, loopback interfaces are <em>not</em> allowed as the primary interface.</p>
-
-<p>Using a loopback interface as the primary interface usually indicates a configuration error. It’s fairly common in some VPS setups, for example, to not configure a hostname or to have the hostname resolve to 127.0.0.1. If this is the case, then all bookies in the cluster will establish their identities as 127.0.0.1:3181, and only one will be able to join the cluster. For VPSs configured like this, you should explicitly set the listening interface.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="bookieDeathWatchInterval">
-      <td><code>bookieDeathWatchInterval</code></td>
-      <td><p>Interval to watch whether bookie is dead or not, in milliseconds.</p>
-</td>
-      <td><code>1000</code></td>
-    </tr>
-    
-    <tr id="flushInterval">
-      <td><code>flushInterval</code></td>
-      <td><p>How long the interval to flush ledger index pages to disk, in milliseconds. Flushing index files will introduce much random disk I/O. If separating journal dir and ledger dirs each on different devices, flushing would not affect performance. But if putting journal dir and ledger dirs on same device, performance degrade significantly on too frequent flushing. You can consider increment flush interval to get better performance, but you need to pay more time on bookie server re [...]
-</td>
-      <td><code>100</code></td>
-    </tr>
-    
-    <tr id="allowStorageExpansion">
-      <td><code>allowStorageExpansion</code></td>
-      <td><p>Allow the expansion of bookie storage capacity. Newly added ledger and index directories must be empty.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="useHostNameAsBookieID">
-      <td><code>useHostNameAsBookieID</code></td>
-      <td><p>Whether the bookie should use its hostname to register with the ZooKeeper coordination service. When <code class="highlighter-rouge">false</code>, the bookie will use its IP address for the registration.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="allowEphemeralPorts">
-      <td><code>allowEphemeralPorts</code></td>
-      <td><p>Whether the bookie is allowed to use an ephemeral port (port 0) as its server port. By default, an ephemeral port is not allowed. Using an ephemeral port as the service port usually indicates a configuration error. However, in unit tests, using an ephemeral port will address port conflict problems and allow running tests in parallel.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="enableLocalTransport">
-      <td><code>enableLocalTransport</code></td>
-      <td><p>Whether allow the bookie to listen for BookKeeper clients executed on the local JVM.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="disableServerSocketBind">
-      <td><code>disableServerSocketBind</code></td>
-      <td><p>Whether allow the bookie to disable bind on network interfaces, this bookie will be available only to BookKeeper clients executed on the local JVM.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="skipListArenaChunkSize">
-      <td><code>skipListArenaChunkSize</code></td>
-      <td><p>The number of bytes we should use as chunk allocation for org.apache.bookkeeper.bookie.SkipListArena</p>
-</td>
-      <td><code>4194304</code></td>
-    </tr>
-    
-    <tr id="skipListArenaMaxAllocSize">
-      <td><code>skipListArenaMaxAllocSize</code></td>
-      <td><p>The max size we should allocate from the skiplist arena. Allocations larger than this should be allocated directly by the VM to avoid fragmentation.</p>
-</td>
-      <td><code>131072</code></td>
-    </tr>
-    
-    <tr id="bookieAuthProviderFactoryClass">
-      <td><code>bookieAuthProviderFactoryClass</code></td>
-      <td><p>The bookie authentication provider factory class name. If this is null, no authentication will take place.</p>
-</td>
-      <td></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="garbage-collection-settings">Garbage collection settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="gcWaitTime">
-      <td><code>gcWaitTime</code></td>
-      <td><p>How long the interval to trigger next garbage collection, in milliseconds. Since garbage collection is running in background, too frequent gc will heart performance. It is better to give a higher number of gc interval if there is enough disk capacity.</p>
-</td>
-      <td><code>1000</code></td>
-    </tr>
-    
-    <tr id="gcOverreplicatedLedgerWaitTime">
-      <td><code>gcOverreplicatedLedgerWaitTime</code></td>
-      <td><p>How long the interval to trigger next garbage collection of overreplicated ledgers, in milliseconds. This should not be run very frequently since we read the metadata for all the ledgers on the bookie from zk.</p>
-</td>
-      <td><code>86400000</code></td>
-    </tr>
-    
-    <tr id="numAddWorkerThreads">
-      <td><code>numAddWorkerThreads</code></td>
-      <td><p>The number of threads that handle write requests. if zero, writes are handled by <a href="http://netty.io/wiki/thread-model.html">Netty threads</a> directly.</p>
-</td>
-      <td><code>1</code></td>
-    </tr>
-    
-    <tr id="numReadWorkerThreads">
-      <td><code>numReadWorkerThreads</code></td>
-      <td><p>The umber of threads that handle read requests. If 0, reads are handled by <a href="http://netty.io/wiki/thread-model.html">Netty threads</a> directly.</p>
-</td>
-      <td><code>1</code></td>
-    </tr>
-    
-    <tr id="isForceGCAllowWhenNoSpace">
-      <td><code>isForceGCAllowWhenNoSpace</code></td>
-      <td><p>Whether force compaction is allowed when the disk is full or almost full. Forcing GC may get some space back, but may also fill up disk space more quickly. This is because new log files are created before GC, while old garbage log files are deleted after GC.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="tsl-settings">TSL settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="tslProvider">
-      <td><code>tslProvider</code></td>
-      <td><p>TSL Provider (JDK or OpenSSL)</p>
-</td>
-      <td><code>OpenSSL</code></td>
-    </tr>
-    
-    <tr id="tslProviderFactoryClass">
-      <td><code>tslProviderFactoryClass</code></td>
-      <td><p>The path to the class that provides security.</p>
-</td>
-      <td><code>org.apache.bookkeeper.security.SSLContextFactory</code></td>
-    </tr>
-    
-    <tr id="tslClientAuthentication">
-      <td><code>tslClientAuthentication</code></td>
-      <td><p>Type of security used by server.</p>
-</td>
-      <td><code>true</code></td>
-    </tr>
-    
-    <tr id="tslKeyStoreType">
-      <td><code>tslKeyStoreType</code></td>
-      <td><p>Bookie Keystore type.</p>
-</td>
-      <td><code>JKS</code></td>
-    </tr>
-    
-    <tr id="tslKeyStore">
-      <td><code>tslKeyStore</code></td>
-      <td><p>Bookie Keystore location (path).</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr id="tslKeyStore">
-      <td><code>tslKeyStore</code></td>
-      <td><p>Bookie Keystore location (path).</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr id="tslKeyStorePasswordPath">
-      <td><code>tslKeyStorePasswordPath</code></td>
-      <td><p>Bookie Keystore password path, if the keystore is protected by a password.</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr id="tslTrustStoreType">
-      <td><code>tslTrustStoreType</code></td>
-      <td><p>Bookie Truststore type.</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr id="tslTrustStore">
-      <td><code>tslTrustStore</code></td>
-      <td><p>Bookie Truststore location (path).</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr id="tslTrustStorePasswordPath">
-      <td><code>tslTrustStorePasswordPath</code></td>
-      <td><p>Bookie Truststore password path, if the truststore is protected by a password.</p>
-</td>
-      <td></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="long-poll-request-parameter-settings">Long poll request parameter settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="numLongPollWorkerThreads">
-      <td><code>numLongPollWorkerThreads</code></td>
-      <td><p>The number of threads that should handle long poll requests.</p>
-</td>
-      <td><code>10</code></td>
-    </tr>
-    
-    <tr id="requestTimerTickDurationMs">
-      <td><code>requestTimerTickDurationMs</code></td>
-      <td><p>The tick duration in milliseconds for long poll requests.</p>
-</td>
-      <td><code>10</code></td>
-    </tr>
-    
-    <tr id="requestTimerNumTicks">
-      <td><code>requestTimerNumTicks</code></td>
-      <td><p>The number of ticks per wheel for the long poll request timer.</p>
-</td>
-      <td><code>1024</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="autorecovery-settings">AutoRecovery settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="auditorPeriodicBookieCheckInterval">
-      <td><code>auditorPeriodicBookieCheckInterval</code></td>
-      <td><p>The time interval between auditor bookie checks, in seconds. The auditor bookie check checks ledger metadata to see which bookies should contain entries for each ledger. If a bookie that should contain entries is unavailable, then the ledger containing that entry is marked for recovery. Setting this to 0 disables the periodic check. Bookie checks will still run when a bookie fails. The default is once per day.</p>
-</td>
-      <td><code>86400</code></td>
-    </tr>
-    
-    <tr id="rereplicationEntryBatchSize">
-      <td><code>rereplicationEntryBatchSize</code></td>
-      <td><p>The number of entries that a replication will rereplicate in parallel.</p>
-</td>
-      <td><code>10</code></td>
-    </tr>
-    
-    <tr id="openLedgerRereplicationGracePeriod">
-      <td><code>openLedgerRereplicationGracePeriod</code></td>
-      <td><p>The grace period, in seconds, that the replication worker waits before fencing and replicating a ledger fragment that’s still being written to upon bookie failure.</p>
-</td>
-      <td><code>30</code></td>
-    </tr>
-    
-    <tr id="autoRecoveryDaemonEnabled">
-      <td><code>autoRecoveryDaemonEnabled</code></td>
-      <td><p>Whether the bookie itself can start auto-recovery service also or not.</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr id="lostBookieRecoveryDelay">
-      <td><code>lostBookieRecoveryDelay</code></td>
-      <td><p>How long to wait, in seconds, before starting autorecovery of a lost bookie.</p>
-</td>
-      <td><code>0</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="netty-server-settings">Netty server settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="serverTcpNoDelay">
-      <td><code>serverTcpNoDelay</code></td>
-      <td><p>This settings is used to enabled/disabled Nagle’s algorithm, which is a means of improving the efficiency of TCP/IP networks by reducing the number of packets that need to be sent over the network.</p>
-
-<p>If you are sending many small messages, such that more than one can fit in a single IP packet, setting server.tcpnodelay to false to enable Nagle algorithm can provide better performance.</p>
-</td>
-      <td><code>true</code></td>
-    </tr>
-    
-    <tr id="serverSockKeepalive">
-      <td><code>serverSockKeepalive</code></td>
-      <td><p>This setting is used to send keep-alive messages on connection-oriented sockets.</p>
-</td>
-      <td><code>true</code></td>
-    </tr>
-    
-    <tr id="serverTcpLinger">
-      <td><code>serverTcpLinger</code></td>
-      <td><p>The socket linger timeout on close. When enabled, a close or shutdown will not return until all queued messages for the socket have been successfully sent or the linger timeout has been reached. Otherwise, the call returns immediately and the closing is done in the background.</p>
-</td>
-      <td><code>0</code></td>
-    </tr>
-    
-    <tr id="byteBufAllocatorSizeInitial">
-      <td><code>byteBufAllocatorSizeInitial</code></td>
-      <td><p>The Recv ByteBuf allocator initial buf size.</p>
-</td>
-      <td><code>65536</code></td>
-    </tr>
-    
-    <tr id="byteBufAllocatorSizeMin">
-      <td><code>byteBufAllocatorSizeMin</code></td>
-      <td><p>The Recv ByteBuf allocator min buf size.</p>
-</td>
-      <td><code>65536</code></td>
-    </tr>
-    
-    <tr id="byteBufAllocatorSizeMax">
-      <td><code>byteBufAllocatorSizeMax</code></td>
-      <td><p>The Recv ByteBuf allocator max buf size.</p>
-</td>
-      <td><code>1048576</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="journal-settings">Journal settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="journalFormatVersionToWrite">
-      <td><code>journalFormatVersionToWrite</code></td>
-      <td><p>The journal format version to write.
-Available formats are 1-5:
- 1: no header
- 2: a header section was added
- 3: ledger key was introduced
- 4: fencing key was introduced
- 5: expanding header to 512 and padding writes to align sector size configured by <code class="highlighter-rouge">journalAlignmentSize</code></p>
-
-<p>By default, it is <code class="highlighter-rouge">4</code>. If you’d like to enable <code class="highlighter-rouge">padding-writes</code> feature, you can set journal version to <code class="highlighter-rouge">5</code>.
-You can disable <code class="highlighter-rouge">padding-writes</code> by setting journal version back to <code class="highlighter-rouge">4</code>. This feature is available in 4.5.0 and onward versions.</p>
-</td>
-      <td><code>4</code></td>
-    </tr>
-    
-    <tr id="journalMaxSizeMB">
-      <td><code>journalMaxSizeMB</code></td>
-      <td><p>Max file size of journal file, in mega bytes. A new journal file will be created when the old one reaches the file size limitation.</p>
-</td>
-      <td><code>2048</code></td>
-    </tr>
-    
-    <tr id="journalMaxBackups">
-      <td><code>journalMaxBackups</code></td>
-      <td><p>Max number of old journal file to kept. Keep a number of old journal files would help data recovery in specia case.</p>
-</td>
-      <td><code>5</code></td>
-    </tr>
-    
-    <tr id="journalPreAllocSizeMB">
-      <td><code>journalPreAllocSizeMB</code></td>
-      <td><p>How much space should we pre-allocate at a time in the journal.</p>
-</td>
-      <td><code>16</code></td>
-    </tr>
-    
-    <tr id="journalWriteBufferSizeKB">
-      <td><code>journalWriteBufferSizeKB</code></td>
-      <td><p>Size of the write buffers used for the journal.</p>
-</td>
-      <td><code>64</code></td>
-    </tr>
-    
-    <tr id="journalRemoveFromPageCache">
-      <td><code>journalRemoveFromPageCache</code></td>
-      <td><p>Should we remove pages from page cache after force write</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="journalAdaptiveGroupWrites">
-      <td><code>journalAdaptiveGroupWrites</code></td>
-      <td><p>Should we group journal force writes, which optimize group commit for higher throughput.</p>
-</td>
-      <td><code>true</code></td>
-    </tr>
-    
-    <tr id="journalMaxGroupWaitMSec">
-      <td><code>journalMaxGroupWaitMSec</code></td>
-      <td><p>Maximum latency to impose on a journal write to achieve grouping.</p>
-</td>
-      <td><code>200</code></td>
-    </tr>
-    
-    <tr id="journalBufferedWritesThreshold">
-      <td><code>journalBufferedWritesThreshold</code></td>
-      <td><p>Maximum writes to buffer to achieve grouping.</p>
-</td>
-      <td><code>524288</code></td>
-    </tr>
-    
-    <tr id="journalFlushWhenQueueEmpty">
-      <td><code>journalFlushWhenQueueEmpty</code></td>
-      <td><p>If we should flush the journal when journal queue is empty.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="numJournalCallbackThreads">
-      <td><code>numJournalCallbackThreads</code></td>
-      <td><p>The number of threads that should handle journal callbacks.</p>
-</td>
-      <td><code>1</code></td>
-    </tr>
-    
-    <tr id="journalAlignmentSize">
-      <td><code>journalAlignmentSize</code></td>
-      <td><p>All the journal writes and commits should be aligned to given size. If not, zeros will be padded to align to given size.</p>
-</td>
-      <td><code>512</code></td>
-    </tr>
-    
-    <tr id="journalBufferedEntriesThreshold">
-      <td><code>journalBufferedEntriesThreshold</code></td>
-      <td><p>Maximum entries to buffer to impose on a journal write to achieve grouping.</p>
-</td>
-      <td><code>0</code></td>
-    </tr>
-    
-    <tr id="journalFlushWhenQueueEmpty">
-      <td><code>journalFlushWhenQueueEmpty</code></td>
-      <td><p>If we should flush the journal when journal queue is empty.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="ledger-storage-settings">Ledger storage settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="ledgerStorageClass">
-      <td><code>ledgerStorageClass</code></td>
-      <td><p>Ledger storage implementation class</p>
-</td>
-      <td><code>org.apache.bookkeeper.bookie.SortedLedgerStorage</code></td>
-    </tr>
-    
-    <tr id="ledgerDirectories">
-      <td><code>ledgerDirectories</code></td>
-      <td><p>The directory to which Bookkeeper outputs ledger snapshots. You can define multiple directories to store snapshots separated by a comma, for example <code class="highlighter-rouge">/tmp/data-dir1,/tmp/data-dir2</code>.</p>
-</td>
-      <td><code>/tmp/bk1-data,/tmp/bk2-data</code></td>
-    </tr>
-    
-    <tr id="auditorPeriodicCheckInterval">
-      <td><code>auditorPeriodicCheckInterval</code></td>
-      <td><p>The time interval, in seconds, at which the auditor will check all ledgers in the cluster. By default this runs once a week.</p>
-
-<p>Set this to 0 to disable the periodic check completely. Note that periodic checking will put extra load on the cluster, so it should not be run more frequently than once a day.</p>
-</td>
-      <td><code>604800</code></td>
-    </tr>
-    
-    <tr id="sortedLedgerStorageEnabled">
-      <td><code>sortedLedgerStorageEnabled</code></td>
-      <td><p>Whether sorted-ledger storage enabled (default true)</p>
-</td>
-      <td><code>true</code></td>
-    </tr>
-    
-    <tr id="skipListSizeLimit">
-      <td><code>skipListSizeLimit</code></td>
-      <td><p>The skip list data size limitation (default 64MB) in EntryMemTable</p>
-</td>
-      <td><code>67108864L</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="ledger-cache-settings">Ledger cache settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="openFileLimit">
-      <td><code>openFileLimit</code></td>
-      <td><p>Max number of ledger index files could be opened in bookie server. If number of ledger index files reaches this limitation, bookie server started to swap some ledgers from memory to disk. Too frequent swap will affect performance. You can tune this number to gain performance according your requirements.</p>
-</td>
-      <td><code>900</code></td>
-    </tr>
-    
-    <tr id="pageSize">
-      <td><code>pageSize</code></td>
-      <td><p>Size of a index page in ledger cache, in bytes. A larger index page can improve performance writing page to disk, which is efficent when you have small number of ledgers and these ledgers have similar number of entries. If you have large number of ledgers and each ledger has fewer entries, smaller index page would improve memory usage.</p>
-</td>
-      <td><code>8192</code></td>
-    </tr>
-    
-    <tr id="pageLimit">
-      <td><code>pageLimit</code></td>
-      <td><p>How many index pages provided in ledger cache. If number of index pages reaches this limitation, bookie server starts to swap some ledgers from memory to disk. You can increment this value when you found swap became more frequent. But make sure pageLimit*pageSize should not more than JVM max memory limitation, otherwise you would got OutOfMemoryException. In general, incrementing pageLimit, using smaller index page would gain bettern performance in lager number of ledgers wi [...]
-</td>
-      <td><code>1</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="ledger-manager-settings">Ledger manager settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="ledgerManagerType">
-      <td><code>ledgerManagerType</code></td>
-      <td><p>The ledger manager type, which defines how ledgers are stored, managed, and garbage collected. See the <a href="../../getting-started/concepts#ledger-manager">Ledger Manager</a> guide for more details.</p>
-</td>
-      <td><code>flat</code></td>
-    </tr>
-    
-    <tr id="zkLedgersRootPath">
-      <td><code>zkLedgersRootPath</code></td>
-      <td><p>Root Zookeeper path to store ledger metadata. This parameter is used by zookeeper-based ledger manager as a root znode to store all ledgers.</p>
-</td>
-      <td><code>/ledgers</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="entry-log-settings">Entry log settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="logSizeLimit">
-      <td><code>logSizeLimit</code></td>
-      <td><p>Max file size of entry logger, in bytes. A new entry log file will be created when the old one reaches the file size limitation.</p>
-</td>
-      <td><code>2147483648</code></td>
-    </tr>
-    
-    <tr id="entryLogFilePreallocationEnabled">
-      <td><code>entryLogFilePreallocationEnabled</code></td>
-      <td><p>Enable/Disable entry logger preallocation</p>
-</td>
-      <td><code>true</code></td>
-    </tr>
-    
-    <tr id="flushEntrylogBytes">
-      <td><code>flushEntrylogBytes</code></td>
-      <td><p>Entry log flush interval, in bytes. Setting this to 0 or less disables this feature and makes flush happen on log rotation. Flushing in smaller chunks but more frequently reduces spikes in disk I/O. Flushing too frequently may negatively affect performance.</p>
-</td>
-      <td><code>0</code></td>
-    </tr>
-    
-    <tr id="readBufferSizeBytes">
-      <td><code>readBufferSizeBytes</code></td>
-      <td><p>The capacity allocated for <a href="/api/org/apache/bookkeeper/bookie/BufferedReadChannel"><code class="highlighter-rouge">BufferedReadChannel</code></a>s, in bytes.</p>
-</td>
-      <td><code>512</code></td>
-    </tr>
-    
-    <tr id="writeBufferSizeBytes">
-      <td><code>writeBufferSizeBytes</code></td>
-      <td><p>The number of bytes used as capacity for the write buffer.</p>
-</td>
-      <td><code>65536</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="entry-log-compaction-settings">Entry log compaction settings</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="compactionRate">
-      <td><code>compactionRate</code></td>
-      <td><p>The rate at which compaction will read entries. The unit is adds per second.</p>
-</td>
-      <td><code>1000</code></td>
-    </tr>
-    
-    <tr id="minorCompactionThreshold">
-      <td><code>minorCompactionThreshold</code></td>
-      <td><p>Threshold of minor compaction. For those entry log files whose remaining size percentage reaches below this threshold will be compacted in a minor compaction. If it is set to less than zero, the minor compaction is disabled.</p>
-</td>
-      <td><code>0.2</code></td>
-    </tr>
-    
-    <tr id="minorCompactionInterval">
-      <td><code>minorCompactionInterval</code></td>
-      <td><p>Interval to run minor compaction, in seconds. If it is set to less than zero, the minor compaction is disabled.</p>
-</td>
-      <td></td>
-    </tr>
-    
-    <tr id="compactionMaxOutstandingRequests">
-      <td><code>compactionMaxOutstandingRequests</code></td>
-      <td><p>Set the maximum number of entries which can be compacted without flushing. When compacting, the entries are written to the entrylog and the new offsets are cached in memory. Once the entrylog is flushed the index is updated with the new offsets. This parameter controls the number of entries added to the entrylog before a flush is forced. A higher value for this parameter means  more memory will be used for offsets. Each offset consists of 3 longs. This parameter should <em>n [...]
-</td>
-      <td><code>100000</code></td>
-    </tr>
-    
-    <tr id="majorCompactionThreshold">
-      <td><code>majorCompactionThreshold</code></td>
-      <td><p>Threshold of major compaction. For those entry log files whose remaining size percentage reaches below  this threshold will be compacted in a major compaction.  Those entry log files whose remaining size percentage is still higher than the threshold will never be compacted. If it is set to less than zero, the minor compaction is disabled.</p>
-</td>
-      <td><code>0.8</code></td>
-    </tr>
-    
-    <tr id="majorCompactionInterval">
-      <td><code>majorCompactionInterval</code></td>
-      <td><p>Interval to run major compaction, in seconds. If it is set to less than zero, the major compaction is disabled.</p>
-</td>
-      <td><code>86400</code></td>
-    </tr>
-    
-    <tr id="isThrottleByBytes">
-      <td><code>isThrottleByBytes</code></td>
-      <td><p>Throttle compaction by bytes or by entries.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="compactionRateByEntries">
-      <td><code>compactionRateByEntries</code></td>
-      <td><p>Set the rate at which compaction will read entries. The unit is adds per second.</p>
-</td>
-      <td><code>1000</code></td>
-    </tr>
-    
-    <tr id="compactionRateByBytes">
-      <td><code>compactionRateByBytes</code></td>
-      <td><p>Set the rate at which compaction will read entries. The unit is bytes added per second.</p>
-</td>
-      <td><code>1000000</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="statistics">Statistics</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="enableStatistics">
-      <td><code>enableStatistics</code></td>
-      <td><p>Whether statistics are enabled for the bookie.</p>
-</td>
-      <td><code>true</code></td>
-    </tr>
-    
-    <tr id="statsProviderClass">
-      <td><code>statsProviderClass</code></td>
-      <td><p>Stats provider class.</p>
-</td>
-      <td><code>org.apache.bookkeeper.stats.CodahaleMetricsProvider</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="read-only-mode-support">Read-only mode support</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="readOnlyModeEnabled">
-      <td><code>readOnlyModeEnabled</code></td>
-      <td><p>If all ledger directories configured are full, then support only read requests for clients. If “readOnlyModeEnabled=true” then on all ledger disks full, bookie will be converted to read-only mode and serve only read requests. Otherwise the bookie will be shutdown. By default this will be disabled.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-    
-    <tr id="forceReadOnlyBookie">
-      <td><code>forceReadOnlyBookie</code></td>
-      <td><p>Whether the bookie is force started in read only mode or not.</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="disk-utilization">Disk utilization</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="diskUsageThreshold">
-      <td><code>diskUsageThreshold</code></td>
-      <td><p>For each ledger dir, maximum disk space which can be used. Default is 0.95f. i.e. 95% of disk can be used at most after which nothing will be written to that partition. If all ledger dir partions are full, then bookie will turn to readonly mode if ‘readOnlyModeEnabled=true’ is set, else it will shutdown. Valid values should be in between 0 and 1 (exclusive).</p>
-</td>
-      <td><code>0.95</code></td>
-    </tr>
-    
-    <tr id="diskUsageLwmThreshold">
-      <td><code>diskUsageLwmThreshold</code></td>
-      <td><p>Set the disk free space low water mark threshold. Disk is considered full when usage threshold is exceeded. Disk returns back to non-full state when usage is  below low water mark threshold. This prevents it from going back and forth between these states frequently when concurrent writes and compaction are happening. This also prevent bookie from switching frequently between read-only and read-writes states in the same cases.</p>
-</td>
-      <td><code>0.9</code></td>
-    </tr>
-    
-    <tr id="diskUsageWarnThreshold">
-      <td><code>diskUsageWarnThreshold</code></td>
-      <td><p>The disk free space low water mark threshold. Disk is considered full when usage threshold is exceeded. Disk returns back to non-full state when usage is below low water mark threshold. This prevents it from going back and forth between these states frequently when concurrent writes and compaction are happening. This also prevent bookie from switching frequently between read-only and read-writes states in the same cases.</p>
-</td>
-      <td><code>0.95</code></td>
-    </tr>
-    
-    <tr id="diskCheckInterval">
-      <td><code>diskCheckInterval</code></td>
-      <td><p>Disk check interval in milliseconds. Interval to check the ledger dirs usage.</p>
-</td>
-      <td><code>10000</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-
-<h2 id="zookeeper-parameters">ZooKeeper parameters</h2>
-
-<table>
-  <thead>
-    <tr>
-      <th>Parameter</th>
-      <th>Description</th>
-      <th>Default</th>
-    </tr>
-  </thead>
-  <tbody>
-    
-    <tr id="zkServers">
-      <td><code>zkServers</code></td>
-      <td><p>A list of one of more servers on which Zookeeper is running. The server list can be comma separated values, for example <code class="highlighter-rouge">zkServers=zk1:2181,zk2:2181,zk3:2181</code>.</p>
-</td>
-      <td><code>localhost:2181</code></td>
-    </tr>
-    
-    <tr id="zkTimeout">
-      <td><code>zkTimeout</code></td>
-      <td><p>ZooKeeper client session timeout in milliseconds. Bookie server will exit if it received SESSION_EXPIRED because it was partitioned off from ZooKeeper for more than the session timeout  JVM garbage collection, disk I/O will cause SESSION_EXPIRED. Increment this value could help avoiding this issue.</p>
-</td>
-      <td><code>10</code></td>
-    </tr>
-    
-    <tr id="zkRetryBackoffStartMs">
-      <td><code>zkRetryBackoffStartMs</code></td>
-      <td><p>The Zookeeper client backoff retry start time in millis.</p>
-</td>
-      <td><code>1000</code></td>
-    </tr>
-    
-    <tr id="zkRetryBackoffMaxMs">
-      <td><code>zkRetryBackoffMaxMs</code></td>
-      <td><p>The Zookeeper client backoff retry max time in millis.</p>
-</td>
-      <td><code>10000</code></td>
-    </tr>
-    
-    <tr id="zkEnableSecurity">
-      <td><code>zkEnableSecurity</code></td>
-      <td><p>Set ACLs on every node written on ZooKeeper, this way only allowed users will be able to read and write BookKeeper metadata stored on ZooKeeper. In order to make ACLs work you need to setup ZooKeeper JAAS authentication all the bookies and Client need to share the same user, and this is usually done using Kerberos authentication. See ZooKeeper documentation</p>
-</td>
-      <td><code>false</code></td>
-    </tr>
-     <!-- for param in group.params -->
-  </tbody>
-</table>
-<p><!-- for group in configs.groups --></p>
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">BookKeeper configuration</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#server-parameters">Server parameters</a></li>
-<li class="toc-entry toc-h2"><a href="#garbage-collection-settings">Garbage collection settings</a></li>
-<li class="toc-entry toc-h2"><a href="#tsl-settings">TSL settings</a></li>
-<li class="toc-entry toc-h2"><a href="#long-poll-request-parameter-settings">Long poll request parameter settings</a></li>
-<li class="toc-entry toc-h2"><a href="#autorecovery-settings">AutoRecovery settings</a></li>
-<li class="toc-entry toc-h2"><a href="#netty-server-settings">Netty server settings</a></li>
-<li class="toc-entry toc-h2"><a href="#journal-settings">Journal settings</a></li>
-<li class="toc-entry toc-h2"><a href="#ledger-storage-settings">Ledger storage settings</a></li>
-<li class="toc-entry toc-h2"><a href="#ledger-cache-settings">Ledger cache settings</a></li>
-<li class="toc-entry toc-h2"><a href="#ledger-manager-settings">Ledger manager settings</a></li>
-<li class="toc-entry toc-h2"><a href="#entry-log-settings">Entry log settings</a></li>
-<li class="toc-entry toc-h2"><a href="#entry-log-compaction-settings">Entry log compaction settings</a></li>
-<li class="toc-entry toc-h2"><a href="#statistics">Statistics</a></li>
-<li class="toc-entry toc-h2"><a href="#read-only-mode-support">Read-only mode support</a></li>
-<li class="toc-entry toc-h2"><a href="#disk-utilization">Disk utilization</a></li>
-<li class="toc-entry toc-h2"><a href="#zookeeper-parameters">ZooKeeper parameters</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/reference/metrics/index.html b/content/docs/reference/metrics/index.html
deleted file mode 100644
index 8ad79ae..0000000
--- a/content/docs/reference/metrics/index.html
+++ /dev/null
@@ -1,511 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - BookKeeper metrics reference</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          
-          <a class="navbar-item" href="/test/content/docs/getting-started/installation">
-            Release 4.5.0
-            <span class="tag is-success">LATEST</span>
-          </a>
-          
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-  <hr />
-  <a class="button is-info">
-    Latest version: 4.5.0
-  </a>
-</aside>
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">BookKeeper metrics reference</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          
-
-        </section>
-
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">BookKeeper metrics reference</h2>
-  <ul class="section-nav">
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/security/index.html b/content/docs/security/index.html
deleted file mode 100644
index 30c48d5..0000000
--- a/content/docs/security/index.html
+++ /dev/null
@@ -1,588 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - BookKeeper Security</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/docs/latest/index.html">
-            Version 4.5.0-SNAPSHOT
-            <span class="tag is-warning">Development</span>
-          </a>
-          <a class="navbar-item" href="/test/content/docs/latest/api/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <a class="button is-info">
-    Version : security
-  </a>
-  <hr />
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/upgrade">
-      Upgrade
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/ledger-adv-api">
-      Advanced Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Security
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/index">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/tls">
-      TLS Authentication
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/sasl">
-      SASL Authentication
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/zookeeper">
-      ZooKeeper Authentication
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-</aside>
-
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">BookKeeper Security</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>In the 4.5.0 release, the BookKeeper community added a number of features that can be used, together or separately, to secure a BookKeeper cluster.
-The following security measures are currently supported:</p>
-
-<ol>
-  <li>Authentication of connections to bookies from clients, using either <a href="./tls">TLS</a> or <a href="./sasl">SASL (Kerberos)</a>.</li>
-  <li>Authentication of connections from clients, bookies, autorecovery daemons to <a href="./zookeeper">ZooKeeper</a>, when using zookeeper based ledger managers.</li>
-  <li>Encryption of data transferred between bookies and clients, between bookies and autorecovery daemons using <a href="./tls">TLS</a>.</li>
-</ol>
-
-<p>It’s worth noting that security is optional - non-secured clusters are supported, as well as a mix of authenticated, unauthenticated, encrypted and non-encrypted clients.</p>
-
-<p>NOTE: currently <code class="highlighter-rouge">authorization</code> is not yet available in <code class="highlighter-rouge">4.5.0</code>. The Apache BookKeeper community is looking for adding this feature in subsequent releases.</p>
-
-<h2 id="next-steps">Next Steps</h2>
-
-<ul>
-  <li><a href="./tls">Encryption and Authentication using TLS</a></li>
-  <li><a href="./sasl">Authentication using SASL</a></li>
-  <li><a href="./zookeeper">ZooKeeper Authentication</a></li>
-</ul>
-
-        </section>
-
-        
-        <nav class="pagination is-centered">
-          
-          
-          <a class="pagination-next" href="./tls.html">Next</a>
-          
-          <ul class="pagination-list"></ul>
-        </nav>
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">BookKeeper Security</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#next-steps">Next Steps</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/security/sasl/index.html b/content/docs/security/sasl/index.html
deleted file mode 100644
index 24b278e..0000000
--- a/content/docs/security/sasl/index.html
+++ /dev/null
@@ -1,799 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Authentication using SASL</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/docs/latest/index.html">
-            Version 4.5.0-SNAPSHOT
-            <span class="tag is-warning">Development</span>
-          </a>
-          <a class="navbar-item" href="/test/content/docs/latest/api/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <a class="button is-info">
-    Version : security
-  </a>
-  <hr />
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/upgrade">
-      Upgrade
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/ledger-adv-api">
-      Advanced Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Security
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/index">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/tls">
-      TLS Authentication
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/sasl">
-      SASL Authentication
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/zookeeper">
-      ZooKeeper Authentication
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-</aside>
-
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Authentication using SASL</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>Bookies support client authentication via SASL. Currently we only support GSSAPI (Kerberos). We will start
-with a general description of how to configure <code class="highlighter-rouge">SASL</code> for bookies, clients and autorecovery daemons, followed
-by mechanism-specific details and wrap up with some operational details.</p>
-
-<h2 id="sasl-configuration-for-bookies">SASL configuration for Bookies</h2>
-
-<ol>
-  <li>Select the mechanisms to enable in the bookies. <code class="highlighter-rouge">GSSAPI</code> is the only mechanism currently supported by BookKeeper.</li>
-  <li>Add a <code class="highlighter-rouge">JAAS</code> config file for the selected mechanisms as described in the examples for setting up <a href="#kerberos">GSSAPI (Kerberos)</a>.</li>
-  <li>
-    <p>Pass the <code class="highlighter-rouge">JAAS</code> config file location as JVM parameter to each Bookie. For example:</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> -Djava.security.auth.login.config<span class="o">=</span>/etc/bookkeeper/bookie_jaas.conf 
-</code></pre>
-    </div>
-  </li>
-  <li>
-    <p>Enable SASL auth plugin in bookies, by setting <code class="highlighter-rouge">bookieAuthProviderFactoryClass</code> to <code class="highlighter-rouge">org.apache.bookkeeper.sasl.SASLBookieAuthProviderFactory</code>.</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> <span class="nv">bookieAuthProviderFactoryClass</span><span class="o">=</span>org.apache.bookkeeper.sasl.SASLBookieAuthProviderFactory
-</code></pre>
-    </div>
-  </li>
-  <li>
-    <p>If you are running <code class="highlighter-rouge">autorecovery</code> along with bookies, then you want to enable SASL auth plugin for <code class="highlighter-rouge">autorecovery</code>, by setting
- <code class="highlighter-rouge">clientAuthProviderFactoryClass</code> to <code class="highlighter-rouge">org.apache.bookkeeper.sasl.SASLClientProviderFactory</code>.</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> <span class="nv">clientAuthProviderFactoryClass</span><span class="o">=</span>org.apache.bookkeeper.sasl.SASLClientProviderFactory
-</code></pre>
-    </div>
-  </li>
-  <li>Follow the steps in <a href="#kerberos">GSSAPI (Kerberos)</a> to configure SASL.</li>
-</ol>
-
-<h4 id="-important-notes"><a name="notes"></a> Important Notes</h4>
-
-<ol>
-  <li><code class="highlighter-rouge">Bookie</code> is a section name in the JAAS file used by each bookie. This section tells the bookie which principal to use
- and the location of the keytab where the principal is stored. It allows the bookie to login using the keytab specified in this section.</li>
-  <li><code class="highlighter-rouge">Auditor</code> is a section name in the JASS file used by <code class="highlighter-rouge">autorecovery</code> daemon (it can be co-run with bookies). This section tells the
- <code class="highlighter-rouge">autorecovery</code> daemon which principal to use and the location of the keytab where the principal is stored. It allows the bookie to
- login using the keytab specified in this section.</li>
-  <li>The <code class="highlighter-rouge">Client</code> section is used to authenticate a SASL connection with ZooKeeper. It also allows the bookies to set ACLs on ZooKeeper nodes
- which locks these nodes down so that only the bookies can modify it. It is necessary to have the same primary name across all bookies.
- If you want to use a section name other than <code class="highlighter-rouge">Client</code>, set the system property <code class="highlighter-rouge">zookeeper.sasl.client</code> to the appropriate name
- (e.g <code class="highlighter-rouge">-Dzookeeper.sasl.client=ZKClient</code>).</li>
-  <li>ZooKeeper uses <code class="highlighter-rouge">zookeeper</code> as the service name by default. If you want to change this, set the system property
- <code class="highlighter-rouge">zookeeper.sasl.client.username</code> to the appropriate name (e.g. <code class="highlighter-rouge">-Dzookeeper.sasl.client.username=zk</code>).</li>
-</ol>
-
-<h2 id="sasl-configuration-for-clients">SASL configuration for Clients</h2>
-
-<p>To configure <code class="highlighter-rouge">SASL</code> authentication on the clients:</p>
-
-<ol>
-  <li>Select a <code class="highlighter-rouge">SASL</code> mechanism for authentication and add a <code class="highlighter-rouge">JAAS</code> config file for the selected mechanism as described in the examples for
- setting up <a href="#kerberos">GSSAPI (Kerberos)</a>.</li>
-  <li>
-    <p>Pass the <code class="highlighter-rouge">JAAS</code> config file location as JVM parameter to each client JVM. For example:</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> -Djava.security.auth.login.config<span class="o">=</span>/etc/bookkeeper/bookkeeper_jaas.conf 
-</code></pre>
-    </div>
-  </li>
-  <li>
-    <p>Configure the following properties in bookkeeper <code class="highlighter-rouge">ClientConfiguration</code>:</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> <span class="nv">clientAuthProviderFactoryClass</span><span class="o">=</span>org.apache.bookkeeper.sasl.SASLClientProviderFactory
-</code></pre>
-    </div>
-  </li>
-</ol>
-
-<p>Follow the steps in <a href="#kerberos">GSSAPI (Kerberos)</a> to configure SASL for the selected mechanism.</p>
-
-<h2 id="-authentication-using-saslkerberos"><a name="kerberos"></a> Authentication using SASL/Kerberos</h2>
-
-<h3 id="prerequisites">Prerequisites</h3>
-
-<h4 id="kerberos">Kerberos</h4>
-
-<p>If your organization is already using a Kerberos server (for example, by using <code class="highlighter-rouge">Active Directory</code>), there is no need to
-install a new server just for BookKeeper. Otherwise you will need to install one, your Linux vendor likely has packages
-for <code class="highlighter-rouge">Kerberos</code> and a short guide on how to install and configure it (<a href="https://help.ubuntu.com/community/Kerberos">Ubuntu</a>,
-<a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Smart_Cards/installing-kerberos.html">Redhat</a>).
-Note that if you are using Oracle Java, you will need to download JCE policy files for your Java version and copy them to <code class="highlighter-rouge">$JAVA_HOME/jre/lib/security</code>.</p>
-
-<h4 id="kerberos-principals">Kerberos Principals</h4>
-
-<p>If you are using the organization’s Kerberos or Active Directory server, ask your Kerberos administrator for a principal
-for each Bookie in your cluster and for every operating system user that will access BookKeeper with Kerberos authentication
-(via clients and tools).</p>
-
-<p>If you have installed your own Kerberos, you will need to create these principals yourself using the following commands:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>sudo /usr/sbin/kadmin.local -q <span class="s1">'addprinc -randkey bookkeeper/{hostname}@{REALM}'</span>
-sudo /usr/sbin/kadmin.local -q <span class="s2">"ktadd -k /etc/security/keytabs/{keytabname}.keytab bookkeeper/{hostname}@{REALM}"</span>
-</code></pre>
-</div>
-
-<h5 id="all-hosts-must-be-reachable-using-hostnames">All hosts must be reachable using hostnames</h5>
-
-<p>It is a <em>Kerberos</em> requirement that all your hosts can be resolved with their FQDNs.</p>
-
-<h3 id="configuring-bookies">Configuring Bookies</h3>
-
-<ol>
-  <li>
-    <p>Add a suitably modified JAAS file similar to the one below to each Bookie’s config directory, let’s call it <code class="highlighter-rouge">bookie_jaas.conf</code>
-for this example (note that each bookie should have its own keytab):</p>
-
-    <div class="highlighter-rouge"><pre class="highlight"><code> Bookie {
-     com.sun.security.auth.module.Krb5LoginModule required
-     useKeyTab=true
-     storeKey=true
-     keyTab="/etc/security/keytabs/bookie.keytab"
-     principal="bookkeeper/bk1.hostname.com@EXAMPLE.COM";
- };
- // ZooKeeper client authentication
- Client {
-     com.sun.security.auth.module.Krb5LoginModule required
-     useKeyTab=true
-     storeKey=true
-     keyTab="/etc/security/keytabs/bookie.keytab"
-     principal="bookkeeper/bk1.hostname.com@EXAMPLE.COM";
- };
- // If you are running `autorecovery` along with bookies
- Auditor {
-     com.sun.security.auth.module.Krb5LoginModule required
-     useKeyTab=true
-     storeKey=true
-     keyTab="/etc/security/keytabs/bookie.keytab"
-     principal="bookkeeper/bk1.hostname.com@EXAMPLE.COM";
- };
-</code></pre>
-    </div>
-
-    <p>The <code class="highlighter-rouge">Bookie</code> section in the JAAS file tells the bookie which principal to use and the location of the keytab where this principal is stored.
- It allows the bookie to login using the keytab specified in this section. See <a href="#notes">notes</a> for more details on Zookeeper’s SASL configuration.</p>
-  </li>
-  <li>
-    <p>Pass the name of the JAAS file as a JVM parameter to each Bookie:</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> -Djava.security.auth.login.config<span class="o">=</span>/etc/bookkeeper/bookie_jaas.conf
-</code></pre>
-    </div>
-
-    <p>You may also wish to specify the path to the <code class="highlighter-rouge">krb5.conf</code> file
- (see <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/KerberosReq.html">JDK’s Kerberos Requirements</a> for more details):</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> -Djava.security.krb5.conf<span class="o">=</span>/etc/bookkeeper/krb5.conf
-</code></pre>
-    </div>
-  </li>
-  <li>
-    <p>Make sure the keytabs configured in the JAAS file are readable by the operating system user who is starting the Bookies.</p>
-  </li>
-  <li>
-    <p>Enable SASL authentication plugin in the bookies by setting following parameters.</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> <span class="nv">bookieAuthProviderFactoryClass</span><span class="o">=</span>org.apache.bookkeeper.sasl.SASLBookieAuthProviderFactory
- <span class="c"># if you run `autorecovery` along with bookies</span>
- <span class="nv">clientAuthProviderFactoryClass</span><span class="o">=</span>org.apache.bookkeeper.sasl.SASLClientProviderFactory
-</code></pre>
-    </div>
-  </li>
-</ol>
-
-<h3 id="configuring-clients">Configuring Clients</h3>
-
-<p>To configure SASL authentication on the clients:</p>
-
-<ol>
-  <li>
-    <p>Clients will authenticate to the cluster with their own principal (usually with the same name as the user running the client),
- so obtain or create these principals as needed. Then create a <code class="highlighter-rouge">JAAS</code> file for each principal. The <code class="highlighter-rouge">BookKeeper</code> section describes
- how the clients like writers and readers can connect to the Bookies. The following is an example configuration for a client using
- a keytab (recommended for long-running processes):</p>
-
-    <div class="highlighter-rouge"><pre class="highlight"><code> BookKeeper {
-     com.sun.security.auth.module.Krb5LoginModule required
-     useKeyTab=true
-     storeKey=true
-     keyTab="/etc/security/keytabs/bookkeeper.keytab"
-     principal="bookkeeper-client-1@EXAMPLE.COM";
- };
-</code></pre>
-    </div>
-  </li>
-  <li>
-    <p>Pass the name of the JAAS file as a JVM parameter to the client JVM:</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> -Djava.security.auth.login.config<span class="o">=</span>/etc/bookkeeper/bookkeeper_jaas.conf
-</code></pre>
-    </div>
-
-    <p>You may also wish to specify the path to the <code class="highlighter-rouge">krb5.conf</code> file (see
- <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/KerberosReq.html">JDK’s Kerberos Requirements</a> for more details).</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> -Djava.security.krb5.conf<span class="o">=</span>/etc/bookkeeper/krb5.conf
-</code></pre>
-    </div>
-  </li>
-  <li>
-    <p>Make sure the keytabs configured in the <code class="highlighter-rouge">bookkeeper_jaas.conf</code> are readable by the operating system user who is starting bookkeeper client.</p>
-  </li>
-  <li>
-    <p>Enable SASL authentication plugin in the client by setting following parameters.</p>
-
-    <div class="language-shell highlighter-rouge"><pre class="highlight"><code> <span class="nv">clientAuthProviderFactoryClass</span><span class="o">=</span>org.apache.bookkeeper.sasl.SASLClientProviderFactory
-</code></pre>
-    </div>
-  </li>
-</ol>
-
-<h2 id="enabling-logging-for-sasl">Enabling Logging for SASL</h2>
-
-<p>To enable SASL debug output, you can set <code class="highlighter-rouge">sun.security.krb5.debug</code> system property to <code class="highlighter-rouge">true</code>.</p>
-
-
-        </section>
-
-        
-        <nav class="pagination is-centered">
-          
-          <a class="pagination-previous" href="../tls">Previous</a>
-          
-          
-          <a class="pagination-next" href="../zookeeper">Next</a>
-          
-          <ul class="pagination-list"></ul>
-        </nav>
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Authentication using SASL</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#sasl-configuration-for-bookies">SASL configuration for Bookies</a></li>
-<li class="toc-entry toc-h4"><a href="#-important-notes"> Important Notes</a></li>
-<li class="toc-entry toc-h2"><a href="#sasl-configuration-for-clients">SASL configuration for Clients</a></li>
-<li class="toc-entry toc-h2"><a href="#-authentication-using-saslkerberos"> Authentication using SASL/Kerberos</a></li>
-<li class="toc-entry toc-h3"><a href="#prerequisites">Prerequisites</a></li>
-<li class="toc-entry toc-h4"><a href="#kerberos">Kerberos</a></li>
-<li class="toc-entry toc-h4"><a href="#kerberos-principals">Kerberos Principals</a></li>
-<li class="toc-entry toc-h5"><a href="#all-hosts-must-be-reachable-using-hostnames">All hosts must be reachable using hostnames</a></li>
-<li class="toc-entry toc-h3"><a href="#configuring-bookies">Configuring Bookies</a></li>
-<li class="toc-entry toc-h3"><a href="#configuring-clients">Configuring Clients</a></li>
-<li class="toc-entry toc-h2"><a href="#enabling-logging-for-sasl">Enabling Logging for SASL</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/security/tls/index.html b/content/docs/security/tls/index.html
deleted file mode 100644
index a1c233a..0000000
--- a/content/docs/security/tls/index.html
+++ /dev/null
@@ -1,790 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - Encryption and Authentication using TLS</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/docs/latest/index.html">
-            Version 4.5.0-SNAPSHOT
-            <span class="tag is-warning">Development</span>
-          </a>
-          <a class="navbar-item" href="/test/content/docs/latest/api/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <a class="button is-info">
-    Version : security
-  </a>
-  <hr />
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/upgrade">
-      Upgrade
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/ledger-adv-api">
-      Advanced Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Security
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/index">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/tls">
-      TLS Authentication
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/sasl">
-      SASL Authentication
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/zookeeper">
-      ZooKeeper Authentication
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-</aside>
-
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">Encryption and Authentication using TLS</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <p>Apache BookKeeper allows clients and autorecovery daemons to communicate over TLS, although this is not enabled by default.</p>
-
-<h2 id="overview">Overview</h2>
-
-<p>The bookies need their own key and certificate in order to use TLS. Clients can optionally provide a key and a certificate
-for mutual authentication.  Each bookie or client can also be configured with a truststore, which is used to
-determine which certificates (bookie or client identities) to trust (authenticate).</p>
-
-<p>The truststore can be configured in many ways. To understand the truststore, consider the following two examples:</p>
-
-<ol>
-  <li>the truststore contains one or many certificates;</li>
-  <li>it contains a certificate authority (CA).</li>
-</ol>
-
-<p>In (1), with a list of certificates, the bookie or client will trust any certificate listed in the truststore.
-In (2), with a CA, the bookie or client will trust any certificate that was signed by the CA in the truststore.</p>
-
-<p>(TBD: benefits)</p>
-
-<h2 id="-generate-tls-key-and-certificate"><a name="bookie-keystore"></a> Generate TLS key and certificate</h2>
-
-<p>The first step of deploying TLS is to generate the key and the certificate for each machine in the cluster.
-You can use Java’s <code class="highlighter-rouge">keytool</code> utility to accomplish this task. We will generate the key into a temporary keystore
-initially so that we can export and sign it later with CA.</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>keytool -keystore bookie.keystore.jks -alias localhost -validity <span class="o">{</span>validity<span class="o">}</span> -genkey
-</code></pre>
-</div>
-
-<p>You need to specify two parameters in the above command:</p>
-
-<ol>
-  <li><code class="highlighter-rouge">keystore</code>: the keystore file that stores the certificate. The <em>keystore</em> file contains the private key of
- the certificate; hence, it needs to be kept safely.</li>
-  <li><code class="highlighter-rouge">validity</code>: the valid time of the certificate in days.</li>
-</ol>
-
-<div class="alert alert-success">
-Ensure that common name (CN) matches exactly with the fully qualified domain name (FQDN) of the server.
-The client compares the CN with the DNS domain name to ensure that it is indeed connecting to the desired server, not a malicious one.
-</div>
-
-<h2 id="creating-your-own-ca">Creating your own CA</h2>
-
-<p>After the first step, each machine in the cluster has a public-private key pair, and a certificate to identify the machine.
-The certificate, however, is unsigned, which means that an attacker can create such a certificate to pretend to be any machine.</p>
-
-<p>Therefore, it is important to prevent forged certificates by signing them for each machine in the cluster.
-A <code class="highlighter-rouge">certificate authority (CA)</code> is responsible for signing certificates. CA works likes a government that issues passports —
-the government stamps (signs) each passport so that the passport becomes difficult to forge. Other governments verify the stamps
-to ensure the passport is authentic. Similarly, the CA signs the certificates, and the cryptography guarantees that a signed
-certificate is computationally difficult to forge. Thus, as long as the CA is a genuine and trusted authority, the clients have
-high assurance that they are connecting to the authentic machines.</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>openssl req -new -x509 -keyout ca-key -out ca-cert -days 365
-</code></pre>
-</div>
-
-<p>The generated CA is simply a <em>public-private</em> key pair and certificate, and it is intended to sign other certificates.</p>
-
-<p>The next step is to add the generated CA to the clients’ truststore so that the clients can trust this CA:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>keytool -keystore bookie.truststore.jks -alias CARoot -import -file ca-cert
-</code></pre>
-</div>
-
-<p>NOTE: If you configure the bookies to require client authentication by setting <code class="highlighter-rouge">sslClientAuthentication</code> to <code class="highlighter-rouge">true</code> on the
-<a href="../../reference/config">bookie config</a>, then you must also provide a truststore for the bookies and it should have all the CA
-certificates that clients keys were signed by.</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>keytool -keystore client.truststore.jks -alias CARoot -import -file ca-cert
-</code></pre>
-</div>
-
-<p>In contrast to the keystore, which stores each machine’s own identity, the truststore of a client stores all the certificates
-that the client should trust. Importing a certificate into one’s truststore also means trusting all certificates that are signed
-by that certificate. As the analogy above, trusting the government (CA) also means trusting all passports (certificates) that
-it has issued. This attribute is called the chain of trust, and it is particularly useful when deploying TLS on a large BookKeeper cluster.
-You can sign all certificates in the cluster with a single CA, and have all machines share the same truststore that trusts the CA.
-That way all machines can authenticate all other machines.</p>
-
-<h2 id="signing-the-certificate">Signing the certificate</h2>
-
-<p>The next step is to sign all certificates in the keystore with the CA we generated. First, you need to export the certificate from the keystore:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>keytool -keystore bookie.keystore.jks -alias localhost -certreq -file cert-file
-</code></pre>
-</div>
-
-<p>Then sign it with the CA:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>openssl x509 -req -CA ca-cert -CAkey ca-key -in cert-file -out cert-signed -days <span class="o">{</span>validity<span class="o">}</span> -CAcreateserial -passin pass:<span class="o">{</span>ca-password<span class="o">}</span>
-</code></pre>
-</div>
-
-<p>Finally, you need to import both the certificate of the CA and the signed certificate into the keystore:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>keytool -keystore bookie.keystore.jks -alias CARoot -import -file ca-cert
-keytool -keystore bookie.keystore.jks -alias localhost -import -file cert-signed
-</code></pre>
-</div>
-
-<p>The definitions of the parameters are the following:</p>
-
-<ol>
-  <li><code class="highlighter-rouge">keystore</code>: the location of the keystore</li>
-  <li><code class="highlighter-rouge">ca-cert</code>: the certificate of the CA</li>
-  <li><code class="highlighter-rouge">ca-key</code>: the private key of the CA</li>
-  <li><code class="highlighter-rouge">ca-password</code>: the passphrase of the CA</li>
-  <li><code class="highlighter-rouge">cert-file</code>: the exported, unsigned certificate of the bookie</li>
-  <li><code class="highlighter-rouge">cert-signed</code>: the signed certificate of the bookie</li>
-</ol>
-
-<p>(TBD: add a script to automatically generate truststores and keystores.)</p>
-
-<h2 id="configuring-bookies">Configuring Bookies</h2>
-
-<p>Bookies support TLS for connections on the same service port. In order to enable TLS, you need to configure <code class="highlighter-rouge">tlsProvider</code> to be either
-<code class="highlighter-rouge">JDK</code> or <code class="highlighter-rouge">OpenSSL</code>. If <code class="highlighter-rouge">OpenSSL</code> is configured, it will use <code class="highlighter-rouge">netty-tcnative-boringssl-static</code>, which loads a corresponding binding according
-to the platforms to run bookies.</p>
-
-<blockquote>
-  <p>Current <code class="highlighter-rouge">OpenSSL</code> implementation doesn’t depend on the system installed OpenSSL library. If you want to leverage the OpenSSL installed on
-the system, you can check <a href="http://netty.io/wiki/forked-tomcat-native.html">this example</a> on how to replaces the JARs on the classpath with
-netty bindings to leverage installed OpenSSL.</p>
-</blockquote>
-
-<p>The following TLS configs are needed on the bookie side:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="nv">tlsProvider</span><span class="o">=</span>OpenSSL
-<span class="c"># key store</span>
-<span class="nv">tlsKeyStoreType</span><span class="o">=</span>JKS
-<span class="nv">tlsKeyStore</span><span class="o">=</span>/var/private/tls/bookie.keystore.jks
-<span class="nv">tlsKeyStorePasswordPath</span><span class="o">=</span>/var/private/tls/bookie.keystore.passwd
-<span class="c"># trust store</span>
-<span class="nv">tlsTrustStoreType</span><span class="o">=</span>JKS
-<span class="nv">tlsTrustStore</span><span class="o">=</span>/var/private/tls/bookie.truststore.jks
-<span class="nv">tlsTrustStorePasswordPath</span><span class="o">=</span>/var/private/tls/bookie.truststore.passwd
-</code></pre>
-</div>
-
-<p>NOTE: it is important to restrict access to the store files and corresponding password files via filesystem permissions.</p>
-
-<p>Optional settings that are worth considering:</p>
-
-<ol>
-  <li>tlsClientAuthentication=false: Enable/Disable using TLS for authentication. This config when enabled will authenticate the other end
- of the communication channel. It should be enabled on both bookies and clients for mutual TLS.</li>
-  <li>tlsEnabledCipherSuites= A cipher suite is a named combination of authentication, encryption, MAC and key exchange
- algorithm used to negotiate the security settings for a network connection using TLS network protocol. By default,
- it is null. <a href="https://www.openssl.org/docs/man1.0.2/apps/ciphers.html">OpenSSL Ciphers</a>
- <a href="http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites">JDK Ciphers</a></li>
-  <li>tlsEnabledProtocols = TLSv1.2,TLSv1.1,TLSv1 (list out the TLS protocols that you are going to accept from clients).
- By default, it is not set.</li>
-</ol>
-
-<p>To verify the bookie’s keystore and truststore are setup correctly you can run the following command:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>openssl s_client -debug -connect localhost:3181 -tls1
-</code></pre>
-</div>
-
-<p>NOTE: TLSv1 should be listed under <code class="highlighter-rouge">tlsEnabledProtocols</code>.</p>
-
-<p>In the output of this command you should see the server’s certificate:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>-----BEGIN CERTIFICATE-----
-<span class="o">{</span>variable sized random bytes<span class="o">}</span>
------END CERTIFICATE-----
-</code></pre>
-</div>
-
-<p>If the certificate does not show up or if there are any other error messages then your keystore is not setup correctly.</p>
-
-<h2 id="configuring-clients">Configuring Clients</h2>
-
-<p>TLS is supported only for the new BookKeeper client (BookKeeper versions 4.5.0 and higher), the older clients are not
-supported. The configs for TLS will be the same as bookies.</p>
-
-<p>If client authentication is not required by the bookies, the following is a minimal configuration example:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="nv">tlsProvider</span><span class="o">=</span>OpenSSL
-<span class="nv">clientTrustStore</span><span class="o">=</span>/var/private/tls/client.truststore.jks
-<span class="nv">clientTrustStorePasswordPath</span><span class="o">=</span>/var/private/tls/client.truststore.passwd
-</code></pre>
-</div>
-
-<p>If client authentication is required, then a keystore must be created for each client, and the bookies’ truststores must
-trust the certificate in the client’s keystore. This may be done using commands that are similar to what we used for
-the <a href="#bookie-keystore">bookie keystore</a>.</p>
-
-<p>And the following must also be configured:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code><span class="nv">tlsClientAuthentication</span><span class="o">=</span><span class="nb">true
-</span><span class="nv">clientKeyStore</span><span class="o">=</span>/var/private/tls/client.keystore.jks
-<span class="nv">clientKeyStorePasswordPath</span><span class="o">=</span>/var/private/tls/client.keystore.passwd
-</code></pre>
-</div>
-
-<p>NOTE: it is important to restrict access to the store files and corresponding password files via filesystem permissions.</p>
-
-<p>(TBD: add example to use tls in bin/bookkeeper script?)</p>
-
-<h2 id="enabling-tls-logging">Enabling TLS Logging</h2>
-
-<p>You can enable TLS debug logging at the JVM level by starting the bookies and/or clients with <code class="highlighter-rouge">javax.net.debug</code> system property. For example:</p>
-
-<div class="language-shell highlighter-rouge"><pre class="highlight"><code>-Djavax.net.debug<span class="o">=</span>all
-</code></pre>
-</div>
-
-<p>You can find more details on this in <a href="http://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/ReadDebug.html">Oracle documentation</a> on
-<a href="http://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/ReadDebug.html">debugging SSL/TLS connections</a>.</p>
-
-        </section>
-
-        
-        <nav class="pagination is-centered">
-          
-          <a class="pagination-previous" href="../index.html">Previous</a>
-          
-          
-          <a class="pagination-next" href="../sasl">Next</a>
-          
-          <ul class="pagination-list"></ul>
-        </nav>
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">Encryption and Authentication using TLS</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#overview">Overview</a></li>
-<li class="toc-entry toc-h2"><a href="#-generate-tls-key-and-certificate"> Generate TLS key and certificate</a></li>
-<li class="toc-entry toc-h2"><a href="#creating-your-own-ca">Creating your own CA</a></li>
-<li class="toc-entry toc-h2"><a href="#signing-the-certificate">Signing the certificate</a></li>
-<li class="toc-entry toc-h2"><a href="#configuring-bookies">Configuring Bookies</a></li>
-<li class="toc-entry toc-h2"><a href="#configuring-clients">Configuring Clients</a></li>
-<li class="toc-entry toc-h2"><a href="#enabling-tls-logging">Enabling TLS Logging</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>
diff --git a/content/docs/security/zookeeper/index.html b/content/docs/security/zookeeper/index.html
deleted file mode 100644
index e2a86f1..0000000
--- a/content/docs/security/zookeeper/index.html
+++ /dev/null
@@ -1,614 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Apache BookKeeper - ZooKeeper Authentication</title>
-
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="/test/content/css/normalize.css">
-<link rel="stylesheet" href="/test/content/css/tippy.css">
-<link rel="stylesheet" href="/test/content/css/style.css">
-
-<link rel="shortcut icon" href="/test/content/img/favicon.ico">
-
-<script src="/test/content/js/tippy.min.js"></script>
-
-<script type="text/javascript">
-  var shiftWindow = function() { scrollBy(0, -108); };
-  window.addEventListener("hashchange", shiftWindow);
-  window.addEventListener("pageshow", shiftWindow);
-  function load() { if (window.location.hash) shiftWindow(); }
-</script>
-
-  </head>
-  <body class="body">
-    <main class="main">
-      
-<nav class="navbar bk-topnav">
-  <div class="navbar-brand">
-    <a class="navbar-item bk-brand" href="/test/content/">
-      Apache BookKeeper
-    </a>
-
-    <!--
-    <a class="navbar-item is-hidden-desktop bk-github" href="https://github.com/apache/bookkeeper" target="_blank">
-      <span class="icon">
-        <i class="fa fa-github"></i>
-      </span>
-    </a>
-
-    <a class="navbar-item is-hidden-desktop bk-twitter" href="https://twitter.com/jgthms" target="_blank">
-      <span class="icon">
-        <i class="fa fa-twitter"></i>
-      </span>
-    </a>
-    -->
-
-    <div class="navbar-burger" data-target="bkNav">
-      <span></span>
-      <span></span>
-      <span></span>
-    </div>
-  </div>
-
-  <div id="bkNav" class="navbar-menu">
-    <div class="navbar-start">
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Documentation</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/docs/latest/index.html">
-            Version 4.5.0-SNAPSHOT
-            <span class="tag is-warning">Development</span>
-          </a>
-          <a class="navbar-item" href="/test/content/docs/latest/api/javadoc">
-            <span class="icon bk-javadoc-icon">
-              <img src="/test/content/img/java-icon.svg">
-            </span>
-            Javadoc
-          </a>
-          <hr class="dropdown-divider">
-          
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.4.0">
-            Release 4.4.0
-            <span class="tag is-success">Stable</span>
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.2">
-            Release 4.3.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.1">
-            Release 4.3.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.3.0">
-            Release 4.3.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.4">
-            Release 4.2.4
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.3">
-            Release 4.2.3
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.2">
-            Release 4.2.2
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.1">
-            Release 4.2.1
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.2.0">
-            Release 4.2.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.1.0">
-            Release 4.1.0
-            
-          </a>
-          
-          <a class="navbar-item" href="/test/content/archives/docs/r4.0.0">
-            Release 4.0.0
-            
-          </a>
-          
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Community</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/community/mailing-lists">Mailing lists</a>
-          <a class="navbar-item" href="/test/content/community/slack">Slack</a>
-          <a class="navbar-item" href="/test/content/community/contributing">Contributing</a>
-          <a class="navbar-item" href="https://issues.apache.org/jira/projects/BOOKKEEPER">JIRA Issue Tracker</a>
-        </div>
-      </div>
-
-      <div class="navbar-item has-dropdown is-hoverable">
-        <a class="navbar-link">Project</a>
-        <div class="navbar-dropdown is-boxed">
-          <a class="navbar-item" href="/test/content/project/who">Who are we?</a>
-          <a class="navbar-item" href="/test/content/project/bylaws">Bylaws</a>
-          <a class="navbar-item" href="http://www.apache.org/licenses/">License</a>
-          <hr class="dropdown-divider">
-          <a class="navbar-item" href="/test/content/project/privacy">Privacy policy</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
-          <a class="navbar-item" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
-        </div>
-      </div>
-    </div>
-
-    <div class="navbar-end">
-      <div class="navbar-item">
-        <div class="field is-grouped">
-          <p class="control">
-            <a class="button bk-twitter" href="https://twitter.com/asfbookkeeper">
-              <span class="icon">
-                <i class="fa fa-twitter"></i>
-              </span>
-              <span>Twitter</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button" href="https://github.com/apache/bookkeeper">
-              <span class="icon">
-                <i class="fa fa-github"></i>
-              </span>
-              <span>GitHub</span>
-            </a>
-          </p>
-          <p class="control">
-            <a class="button is-primary" href="/test/content/releases">
-              <span class="icon">
-                <i class="fa fa-download"></i>
-              </span>
-              <span>Download</span>
-            </a>
-          </p>
-        </div>
-      </div>
-    </div>
-  </div>
-</nav>
-
-
-      <div class="bk-docs-container">
-  <div class="columns is-gapless">
-    <div class="column is-2 is-hidden-mobile">
-      <div class="container">
-        
-<aside class="sidebar">
-  
-  <a class="button is-info">
-    Version : security
-  </a>
-  <hr />
-  
-  <p>
-    Getting started
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/installation">
-      Installation
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/run-locally">
-      Run bookies locally
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/getting-started/concepts">
-      Concepts and architecture
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Deployment
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/deployment/manual">
-      Manual deployment
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/deployment/dcos">
-      BookKeeper on DC/OS
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Administration
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/bookies">
-      BookKeeper administration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/autorecovery">
-      AutoRecovery
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/metrics">
-      Metric collection
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/admin/upgrade">
-      Upgrade
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    API
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/overview">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/ledger-api">
-      Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/ledger-adv-api">
-      Advanced Ledger API
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/api/distributedlog-api">
-      DistributedLog
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Development
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/development/protocol">
-      BookKeeper protocol
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Security
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/index">
-      Overview
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/tls">
-      TLS Authentication
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/sasl">
-      SASL Authentication
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/security/zookeeper">
-      ZooKeeper Authentication
-      </a>
-    </li>
-    
-  </ul>
-  
-  <p>
-    Reference
-  </p>
-  <ul class="sidebar-items">
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/config">
-      Configuration
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/cli">
-      Command-line tools
-      </a>
-    </li>
-    
-    
-    <li>
-      <a href="/test/content/docs/security/reference/metrics">
-      Metrics
-      </a>
-    </li>
-    
-  </ul>
-  
-</aside>
-
-
-      </div>
-    </div>
-
-    <div class="column is-8 bk-docs-block">
-      <header class="docs-title">
-        <nav class="level bk-level">
-          <div class="level-left">
-            <div class="level-item">
-              <h1 class="title">ZooKeeper Authentication</h1>
-            </div>
-          </div>
-          
-        </nav>
-
-        
-      </header>
-
-      <hr />
-
-      <div class="content">
-        <section class="bk-main-content">
-          <h2 id="new-clusters">New Clusters</h2>
-
-<p>To enable <code class="highlighter-rouge">ZooKeeper</code> authentication on Bookies or Clients, there are two necessary steps:</p>
-
-<ol>
-  <li>Create a <code class="highlighter-rouge">JAAS</code> login file and set the appropriate system property to point to it as described in <a href="../sasl#notes">GSSAPI (Kerberos)</a>.</li>
-  <li>Set the configuration property <code class="highlighter-rouge">zkEnableSecurity</code> in each bookie to <code class="highlighter-rouge">true</code>.</li>
-</ol>
-
-<p>The metadata stored in <code class="highlighter-rouge">ZooKeeper</code> is such that only certain clients will be able to modify and read the corresponding znodes.
-The rationale behind this decision is that the data stored in ZooKeeper is not sensitive, but inappropriate manipulation of znodes can cause cluster
-disruption.</p>
-
-<h2 id="migrating-clusters">Migrating Clusters</h2>
-
-<p>If you are running a version of BookKeeper that does not support security or simply with security disabled, and you want to make the cluster secure,
-then you need to execute the following steps to enable ZooKeeper authentication with minimal disruption to your operations.</p>
-
-<ol>
-  <li>Perform a rolling restart setting the <code class="highlighter-rouge">JAAS</code> login file, which enables bookie or clients to authenticate. At the end of the rolling restart,
- bookies (or clients) are able to manipulate znodes with strict ACLs, but they will not create znodes with those ACLs.</li>
-  <li>Perform a second rolling restart of bookies, this time setting the configuration parameter <code class="highlighter-rouge">zkEnableSecurity</code> to true, which enables the use
- of secure ACLs when creating znodes.</li>
-  <li>Currently we don’t have provide a tool to set acls on old znodes. You are recommended to set it manually using ZooKeeper tools.</li>
-</ol>
-
-<p>It is also possible to turn off authentication in a secured cluster. To do it, follow these steps:</p>
-
-<ol>
-  <li>Perform a rolling restart of bookies setting the <code class="highlighter-rouge">JAAS</code> login file, which enable bookies to authenticate, but setting <code class="highlighter-rouge">zkEnableSecurity</code> to <code class="highlighter-rouge">false</code>.
- At the end of rolling restart, bookies stop creating znodes with secure ACLs, but are still able to authenticate and manipulate all znodes.</li>
-  <li>You can use ZooKeeper tools to manually reset all ACLs under the znode set in <code class="highlighter-rouge">zkLedgersRootPath</code>, which defaults to <code class="highlighter-rouge">/ledgers</code>.</li>
-  <li>Perform a second rolling restart of bookies, this time omitting the system property that sets the <code class="highlighter-rouge">JAAS</code> login file.</li>
-</ol>
-
-<h2 id="migrating-the-zookeeper-ensemble">Migrating the ZooKeeper ensemble</h2>
-
-<p>It is also necessary to enable authentication on the <code class="highlighter-rouge">ZooKeeper</code> ensemble. To do it, we need to perform a rolling restart of the ensemble and
-set a few properties. Please refer to the ZooKeeper documentation for more details.</p>
-
-<ol>
-  <li><a href="http://zookeeper.apache.org/doc/r3.4.6/zookeeperProgrammers.html#sc_ZooKeeperAccessControl">Apache ZooKeeper Documentation</a></li>
-  <li><a href="https://cwiki.apache.org/confluence/display/ZOOKEEPER/Zookeeper+and+SASL">Apache ZooKeeper Wiki</a></li>
-</ol>
-
-        </section>
-
-        
-        <nav class="pagination is-centered">
-          
-          <a class="pagination-previous" href="../sasl">Previous</a>
-          
-          
-          <ul class="pagination-list"></ul>
-        </nav>
-        
-      </div>
-    </div>
-
-    <div class="column is-2 is-hidden-mobile">
-      
-      
-<div class="toc">
-  <h2 class="title">ZooKeeper Authentication</h2>
-  <ul class="section-nav">
-<li class="toc-entry toc-h2"><a href="#new-clusters">New Clusters</a></li>
-<li class="toc-entry toc-h2"><a href="#migrating-clusters">Migrating Clusters</a></li>
-<li class="toc-entry toc-h2"><a href="#migrating-the-zookeeper-ensemble">Migrating the ZooKeeper ensemble</a></li>
-</ul>
-</div>
-
-
-      
-    </div>
-  </div>
-</div>
-
-
-
-<div id="entry-popover-html" class="popover-template">
-  <p>An entry is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Entries are also known as records.</p>
-
-</div>
-
-<div id="ledger-popover-html" class="popover-template">
-  <p>A ledger is a sequence of entries written to BookKeeper. Entries are written sequentially to ledgers and at most once, giving ledgers append-only semantics.</p>
-
-</div>
-
-<div id="bookie-popover-html" class="popover-template">
-  <p>A bookie is an individial BookKeeper storage server.</p>
-
-<p>Bookies store the content of ledgers and act as a distributed ensemble.</p>
-
-</div>
-
-<div id="rereplication-popover-html" class="popover-template">
-  <p>A subsystem that runs in the background on bookies to ensure that ledgers are fully replicated even if one bookie from the ensemble is down.</p>
-
-</div>
-
-<div id="striping-popover-html" class="popover-template">
-  <p>Striping is the process of distributing BookKeeper ledgers to sub-groups of bookies rather than to all bookies in a BookKeeper ensemble.</p>
-
-<p>Striping is essential to ensuring fast performance.</p>
-
-</div>
-
-<div id="journal-popover-html" class="popover-template">
-  <p>A journal file stores BookKeeper transaction logs.</p>
-
-</div>
-
-<div id="fencing-popover-html" class="popover-template">
-  <p>When a reader forces a ledger to close, preventing any further entries from being written to the ledger.</p>
-
-</div>
-
-<div id="record-popover-html" class="popover-template">
-  <p>A record is a sequence of bytes (plus some metadata) written to a BookKeeper ledger. Records are also known as entries.</p>
-
-</div>
-
-
-<script type="text/javascript">
-
-tippy('#entry-popover', {
-  html: '#entry-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#ledger-popover', {
-  html: '#ledger-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#bookie-popover', {
-  html: '#bookie-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#rereplication-popover', {
-  html: '#rereplication-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#striping-popover', {
-  html: '#striping-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#journal-popover', {
-  html: '#journal-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#fencing-popover', {
-  html: '#fencing-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-tippy('#record-popover', {
-  html: '#record-popover-html',
-  arrow: true,
-  animation: 'fade'
-});
-
-</script>
-
-    </main>
-
-    <footer class="footer">
-  <div class="container">
-    <div class="content has-text-centered">
-      <p>
-        Copyright &copy; 2016 - 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>,<br /> licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.
-      </p>
-    </div>
-  </div>
-</footer>
-
-  </body>
-
-  <script src="/test/content/js/app.js"></script>
-
-</html>

-- 
To stop receiving notification emails like this one, please contact
['"commits@bookkeeper.apache.org" <commits@bookkeeper.apache.org>'].

Mime
View raw message