From ee8426e5ad82cfc90fdd0da391c1adbfa1b9ab8c Mon Sep 17 00:00:00 2001 From: Amanda Villarreal Date: Wed, 3 Jun 2026 14:36:12 -0500 Subject: [PATCH 1/2] Updated commands in Compacting Stratey Examples that were outdated --- docs/compactionStrategy.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/compactionStrategy.md b/docs/compactionStrategy.md index e003ed7..8cd9f57 100644 --- a/docs/compactionStrategy.md +++ b/docs/compactionStrategy.md @@ -70,7 +70,7 @@ Accumulo. Place your compaction configuration into a file and run the tool. For The following command would check the configuration for errors: - $ accumulo check-compaction-config /path/to/myconfig + $ accumulo conf check-compaction-config /path/to/myconfig With the compaction configuration set, configure table specific properties. @@ -97,18 +97,18 @@ If needed, `chop` compactions can be configured also. Generate some data and files in order to test the strategy: $ ./bin/runex client.SequentialBatchWriter -t examples.test1 --start 0 --num 1000 --size 50 - $ accumulo shell -u -p -e "flush -t examples.test1" + $ accumulo shell --user root --password secret -e "flush -t examples.test1" $ ./bin/runex client.SequentialBatchWriter -t examples.test1 --start 0 --num 2000 --size 50 - $ accumulo shell -u -p -e "flush -t examples.test1" + $ accumulo shell --user root --password secret -e "flush -t examples.test1" - $ accumulo shell -u -p -e "compact -t examples.test1 -w" + $ accumulo shell --user root --password secret -e "compact -t examples.test1 -w" View the `tserver` log in /logs for the compaction and find the name of the `rfile` that was compacted for your table. Print info about this file using the `rfile-info` tool. Replace the TableID with the TableID from above. Note, your filenames will differ from the ones within this example. - accumulo rfile-info hdfs:///accumulo/tables/2/default_tablet/A000000a.rf + accumulo file rfile-info hdfs:///accumulo/tables/2/default_tablet/A000000a.rf Details about the rfile will be printed. The compression type should match the type used in the compaction. In this case, `snappy` is used since the size is less than 100M. @@ -123,20 +123,20 @@ Meta block : RFile.index Continue to add additional data. $ ./bin/runex client.SequentialBatchWriter -t examples.test1 --start 0 --num 1000000 --size 50 - $ accumulo shell -u -p -e "flush -t examples.test1" + $ accumulo shell --user root --password secret -e "flush -t examples.test1" $ ./bin/runex client.SequentialBatchWriter -t examples.test1 --start 1000000 --num 1000000 --size 50 - $ accumulo shell -u -p -e "flush -t examples.test1" + $ accumulo shell --user root --password secret -e "flush -t examples.test1" $ ./bin/runex client.SequentialBatchWriter -t examples.test1 --start 2000000 --num 1000000 --size 50 - $ accumulo shell -u -p -e "flush -t examples.test1" + $ accumulo shell --user root --password secret -e "flush -t examples.test1" - $ accumulo shell -u -p -e "compact -t examples.test1 -w" + $ accumulo shell --user root --password secret -e "compact -t examples.test1 -w" Again, view the tserver log in /logs for the compaction and find the name of the `rfile` that was compacted for your table. Print info about this file using the `rfile-info` tool: - accumulo rfile-info hdfs:///accumulo/tables/2/default_tablet/A000000o.rf + accumulo file rfile-info hdfs:///accumulo/tables/2/default_tablet/A000000o.rf In this case, the compression type should be `gz`. From 7d759ba01ec4555fc21ec4f26c64785bcfd2c284 Mon Sep 17 00:00:00 2001 From: Amanda Villarreal Date: Wed, 3 Jun 2026 14:47:05 -0500 Subject: [PATCH 2/2] Added missing $'s --- docs/compactionStrategy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/compactionStrategy.md b/docs/compactionStrategy.md index 8cd9f57..0c4843f 100644 --- a/docs/compactionStrategy.md +++ b/docs/compactionStrategy.md @@ -108,7 +108,7 @@ View the `tserver` log in /logs for the compaction and find the n compacted for your table. Print info about this file using the `rfile-info` tool. Replace the TableID with the TableID from above. Note, your filenames will differ from the ones within this example. - accumulo file rfile-info hdfs:///accumulo/tables/2/default_tablet/A000000a.rf + $ accumulo file rfile-info hdfs:///accumulo/tables/2/default_tablet/A000000a.rf Details about the rfile will be printed. The compression type should match the type used in the compaction. In this case, `snappy` is used since the size is less than 100M. @@ -136,7 +136,7 @@ Continue to add additional data. Again, view the tserver log in /logs for the compaction and find the name of the `rfile` that was compacted for your table. Print info about this file using the `rfile-info` tool: - accumulo file rfile-info hdfs:///accumulo/tables/2/default_tablet/A000000o.rf + $ accumulo file rfile-info hdfs:///accumulo/tables/2/default_tablet/A000000o.rf In this case, the compression type should be `gz`.