You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mw...@apache.org on 2018/12/27 18:47:29 UTC

[accumulo-website] branch master updated: Documentation updates (#139)

This is an automated email from the ASF dual-hosted git repository.

mwalch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new afca188  Documentation updates (#139)
afca188 is described below

commit afca188f25473fa29a9ce91dc062e02c3f90246a
Author: Mike Walch <mw...@apache.org>
AuthorDate: Thu Dec 27 13:47:25 2018 -0500

    Documentation updates (#139)
    
    * Fixed incorrect info in system metadata table docs
    * Updated docs due to changes in dump zookeeper tool
---
 _docs-2/troubleshooting/system-metadata-tables.md | 13 +++----------
 _docs-2/troubleshooting/tools.md                  | 20 +++++++++++++++++---
 2 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/_docs-2/troubleshooting/system-metadata-tables.md b/_docs-2/troubleshooting/system-metadata-tables.md
index 35b0db6..578907e 100644
--- a/_docs-2/troubleshooting/system-metadata-tables.md
+++ b/_docs-2/troubleshooting/system-metadata-tables.md
@@ -34,7 +34,6 @@ Now let's take a look at the metadata for this table:
     3< file:/default_tablet/F000009y.rf []    186,1
     3< last:13fe86cd27101e5 []    127.0.0.1:9997
     3< loc:13fe86cd27101e5 []    127.0.0.1:9997
-    3< log:127.0.0.1+9997/0cb7ce52-ac46-4bf7-ae1d-acdcfaa97995 []    127.0.0.1+9997/0cb7ce52-ac46-4bf7-ae1d-acdcfaa97995|6
     3< srv:dir []    /default_tablet
     3< srv:flush []    1
     3< srv:lock []    tservers/127.0.0.1:9997/zlock-0000000001$13fe86cd27101e5
@@ -53,24 +52,18 @@ Let's decode this little session:
 
 * `last:13fe86cd27101e5 []    127.0.0.1:9997` -
     Last location for this tablet.  It was last held on 127.0.0.1:9997, and the
-    unique tablet server lock data was `13fe86cd27101e5+. The default balancer
+    unique tablet server lock data was `13fe86cd27101e5`. The default balancer
     will tend to put tablets back on their last location.
 
 * `loc:13fe86cd27101e5 []    127.0.0.1:9997` -
     The current location of this tablet.
 
-* `log:127.0.0.1+9997/0cb7ce52-ac46-4bf7-ae1d-acdcfaa97995 []    127.0. ...` -
-    This tablet has a reference to a single write-ahead log. This file can be found in
-    `/accumulo/wal/127.0.0.1+9997/0cb7ce52-ac46-4bf7-ae1d-acdcfaa97995`. The value
-    of this entry could refer to multiple files. This tablet's data is encoded as
-    `6` within the log.
-
 * `srv:dir []    /default_tablet` -
     Files written for this tablet will be placed into
     `/accumulo/tables/3/default_tablet`.
 
 * `srv:flush []    1` -
-    Flush id.  This table has successfully completed the flush with the id of +1+.
+    Flush id.  This table has successfully completed the flush with the id of `1`.
 
 * `srv:lock []    tservers/127.0.0.1:9997/zlock-0000000001\$13fe86cd27101e5` -
     This is the lock information for the tablet holding the present lock.  This
@@ -79,7 +72,7 @@ Let's decode this little session:
     lock.
 
 * `srv:time []    M1373998392323` -
-    This indicates the time time type (+M+ for milliseconds or +L+ for logical) and the timestamp of the most recently written key in this tablet.  It is used to ensure automatically assigned key timestamps are strictly increasing for the tablet, regardless of the tablet server's system time.
+    This indicates the time time type (`M` for milliseconds or `L` for logical) and the timestamp of the most recently written key in this tablet.  It is used to ensure automatically assigned key timestamps are strictly increasing for the tablet, regardless of the tablet server's system time.
 
 * `~tab:~pr []    \x00` -
     The end-row marker for the previous tablet (prev-row).  The first byte
diff --git a/_docs-2/troubleshooting/tools.md b/_docs-2/troubleshooting/tools.md
index 5be6d9c..817524d 100644
--- a/_docs-2/troubleshooting/tools.md
+++ b/_docs-2/troubleshooting/tools.md
@@ -125,10 +125,24 @@ If you have entries in zookeeper for old instances that you no longer need, remo
 
 This command will not delete the instance pointed to by the local `accumulo.properties` file.
 
-## DumpZookeeper & RestoreZookeeper
+## accumulo-util dump-zoo
 
-If you would like to backup, or otherwise examine the contents of Zookeeper, there are commands to dump and load to/from XML.
+To view the contents of ZooKeeper, run the following command:
+
+    $ accumulo-util dump-zoo
+
+It can also be run using the `accumulo` command and full class name.
+
+    $ accumulo org.apache.accumulo.server.util.DumpZookeeper
+
+If you would like to backup ZooKeeper, run the following command to write its contents as XML to file.
+
+    $ accumulo-util dump-zoo --xml --root /accumulo >dump.xml
+
+# RestoreZookeeper
+
+An XML dump file can be later used to restore ZooKeeper.
 
-    $ accumulo org.apache.accumulo.server.util.DumpZookeeper --root /accumulo >dump.xml
     $ accumulo org.apache.accumulo.server.util.RestoreZookeeper --overwrite < dump.xml
 
+This command overwrites ZooKeeper so take care when using it. This is also why it cannot be called using `accumulo-util`.