Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/combiner.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This is a simple combiner example. To build this example run maven and then
copy the produced jar into the accumulo lib dir. This is already done in the
tar distribution.

$ bin/accumulo shell -u username
$ accumulo shell -u root
Enter current password for 'username'@'instance': ***

Shell - Apache Accumulo Interactive Shell
Expand All @@ -37,6 +37,7 @@ tar distribution.
-
username@instance> createnamespace examples
username@instance> createtable examples.runners
username@instance examples.runners> config -t examples.runners -s table.class.loader.context=file:///path/to/accumulo-examples/target/accumulo-examples.jar
username@instance examples.runners> setiter -t examples.runners -p 10 -scan -minc -majc -n decStats -class org.apache.accumulo.examples.combiner.StatsCombiner
Combiner that keeps track of min, max, sum, and count
----------> set StatsCombiner parameter all, set to true to apply Combiner to every column, otherwise leave blank. if true, columns option will be ignored.:
Expand Down
12 changes: 6 additions & 6 deletions docs/deleteKeyValuePair.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
This example shows how Accumulo internals handle removing a key-value pair

```
$ /path/to/accumulo shell -u username -p secret
$ accumulo shell --user root --password secret
username@instance> createnamespace examples
username@instance> createtable examples.deleteKeyValuePair
username@instance examples.deleteKeyValuePair> insert 567890 name first Joe
Expand Down Expand Up @@ -59,7 +59,7 @@ username@instance examples.deleteKeyValuePair> scan -t accumulo.metadata -c file
View the contents of RFile and verify each key-value pair's deletion flag is false.

```
$ /path/to/accumulo rfile-info -d hdfs://localhost/accumulo/tables/1t/default_tablet/F00007em.rf
$ accumulo file rfile-info -d hdfs://localhost/accumulo/tables/1t/default_tablet/F00007em.rf
RFile Version : 8

Locality group : <DEFAULT>
Expand Down Expand Up @@ -87,7 +87,7 @@ Meta block : RFile.index
Delete a key-value pair and view a newly created RFile to verify the deletion flag is true.

```
$ /path/to/accumulo shell -u username -p secret
$ accumulo shell --user root --password secret
username@instance> table examples.deleteKeyValuePair
username@instance examples.deleteKeyValuePair> delete 567890 name first
username@instance examples.deleteKeyValuePair> flush -w
Expand All @@ -100,7 +100,7 @@ username@instance examples.deleteKeyValuePair> scan -t accumulo.metadata -c file
```

```
$ /path/to/accumulo rfile-info -d hdfs://localhost/accumulo/tables/1t/default_tablet/F00007fq.rf
$ accumulo file rfile-info -d hdfs://localhost/accumulo/tables/1t/default_tablet/F00007fq.rf
RFile Version : 8

Locality group : <DEFAULT>
Expand All @@ -127,7 +127,7 @@ Meta block : RFile.index
Compact the RFiles and verify the key-value pair was removed. The new RFile will start with 'A'.

```
$ /path/to/accumulo shell -u username -p secret
$ accumulo shell --user root --password secret
username@instance> compact -t examples.deleteKeyValuePair -w
2019-04-17 08:17:15,468 [shell.Shell] INFO : Compacting table ...
2019-04-17 08:17:16,143 [shell.Shell] INFO : Compaction of table examples.deleteKeyValuePair
Expand All @@ -140,7 +140,7 @@ lt< file:hdfs://localhost:8020/accumulo/tables/1t/default_tablet/A00007g1.rf
```

```
$ /path/to/accumulo rfile-info -v hdfs://localhost/accumulo/tables/1t/default_tablet/A00007g1.rf
$ accumulo file rfile-info -v hdfs://localhost/accumulo/tables/1t/default_tablet/A00007g1.rf
RFile Version : 8

Locality group : <DEFAULT>
Expand Down
Loading