From 5026a87a75c30b478c85834440ca334c47ed9e2d Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Mon, 27 Mar 2017 15:48:54 -0400 Subject: [PATCH] [accumulo] README feedback from @busbey * Clarify supported Accumulo versions for table setup instructions * Use long-form arg names for non-obvious shell commands --- accumulo/README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/accumulo/README.md b/accumulo/README.md index abe2194dbb..38e444cb7c 100644 --- a/accumulo/README.md +++ b/accumulo/README.md @@ -41,7 +41,8 @@ Git clone YCSB and compile: By default, YCSB uses a table with the name "usertable". Users must create this table before loading data into Accumulo. For maximum Accumulo performance, the Accumulo table must be pre-split. A simple Ruby script, based on the HBase README, can generate adequate split-point. 10's of Tablets per -TabletServer is a good starting point. +TabletServer is a good starting point. Unless otherwise specified, the following commands should run +on any version of Accumulo. $ echo 'num_splits = 20; puts (1..num_splits).map {|i| "user#{1000+i*(9999-1000)/num_splits}"}' | ruby > /tmp/splits.txt $ accumulo shell -u -p -e "createtable usertable" @@ -56,16 +57,19 @@ is a faster and similarly-efficient option. The mutation queue property controls that Accumulo will buffer in memory before performing a flush; this property should be set relative to the amount of JVM heap the TabletServers are given. +Please note that the `table.durability` and `tserver.total.mutation.queue.max` properties only +exists for >=Accumulo-1.7. There are no concise replacements for these properties in earlier versions. + accumulo> config -s table.durability=flush accumulo> config -s tserver.total.mutation.queue.max=256M accumulo> config -t usertable -s table.file.compress.type=snappy On repeated data loads, the following commands may be helpful to re-set the state of the table quickly. - accumulo> createtable tmp -cs usertable -cc usertable - accumulo> deletetable -f usertable + accumulo> createtable tmp --copy-splits usertable --copy-config usertable + accumulo> deletetable --force usertable accumulo> renametable tmp usertable - accumulo> compact -w -t accumulo.metadata + accumulo> compact --wait -t accumulo.metadata ### 4. Load Data and Run Tests