Skip to content

Commit 9e338ec

Browse files
authored
Updated commands in Delete Key Value Pair and Combiner that were outdated (#134)
* Updated commands in Delete Key Value Pair and Combiner that were outdated
1 parent 4822100 commit 9e338ec

2 files changed

Lines changed: 19 additions & 15 deletions

File tree

docs/combiner.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ This tutorial uses the following Java class, which can be found in org.apache.ac
2020

2121
* [StatsCombiner.java] - a combiner that calculates max, min, sum, and count
2222

23-
This is a simple combiner example. To build this example run maven and then
24-
copy the produced jar into the accumulo lib dir. This is already done in the
25-
tar distribution.
23+
This is a simple combiner example. Before running it, follow the
24+
[setup instructions](../README.md#setup-instructions) so the examples jar is
25+
available to Accumulo. Restart your Accumulo instance to ensure the jar is
26+
picked up by the servers.
2627

27-
$ bin/accumulo shell -u username
28+
$ accumulo shell -u root
2829
Enter current password for 'username'@'instance': ***
2930

3031
Shell - Apache Accumulo Interactive Shell
3132
-
32-
- version: 2.1.0-SNAPSHOT
33+
- version: 4.0.0-SNAPSHOT
3334
- instance name: instance
3435
- instance id: 00000000-0000-0000-0000-000000000000
3536
-

docs/deleteKeyValuePair.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ limitations under the License.
1919
This example shows how Accumulo internals handle removing a key-value pair
2020

2121
```
22-
$ /path/to/accumulo shell -u username -p secret
22+
$ accumulo shell --user root --password secret
2323
username@instance> createnamespace examples
2424
username@instance> createtable examples.deleteKeyValuePair
2525
username@instance examples.deleteKeyValuePair> insert 567890 name first Joe
@@ -53,13 +53,14 @@ Scan accumulo.metadata table to see the list of RFiles Accumulo is currently usi
5353

5454
```
5555
username@instance examples.deleteKeyValuePair> scan -t accumulo.metadata -c file -r 1t<
56-
1t< file:hdfs://localhost:8020/accumulo/tables/1t/default_tablet/F00007em.rf
56+
1t< file:{"path":"hdfs://localhost:8020/accumulo/tables/1t/default_tablet/F00007em.rf","startRow":"","endRow":""} [] 311,3
57+
5758
```
5859

5960
View the contents of RFile and verify each key-value pair's deletion flag is false.
6061

6162
```
62-
$ /path/to/accumulo rfile-info -d hdfs://localhost/accumulo/tables/1t/default_tablet/F00007em.rf
63+
$ accumulo file rfile-info -d hdfs://localhost:8020/accumulo/tables/1t/default_tablet/F00007em.rf
6364
RFile Version : 8
6465
6566
Locality group : <DEFAULT>
@@ -87,20 +88,21 @@ Meta block : RFile.index
8788
Delete a key-value pair and view a newly created RFile to verify the deletion flag is true.
8889

8990
```
90-
$ /path/to/accumulo shell -u username -p secret
91+
$ accumulo shell --user root --password secret
9192
username@instance> table examples.deleteKeyValuePair
9293
username@instance examples.deleteKeyValuePair> delete 567890 name first
9394
username@instance examples.deleteKeyValuePair> flush -w
9495
```
9596

9697
```
9798
username@instance examples.deleteKeyValuePair> scan -t accumulo.metadata -c file -r 1t<
98-
1t< file:hdfs://localhost:8020/accumulo/tables/1t/default_tablet/F00007em.rf
99-
1t< file:hdfs://localhost:8020/accumulo/tables/1t/default_tablet/F00007fq.rf
99+
1t< file:{"path":"hdfs://localhost:8020/accumulo/tables/1t/default_tablet/F00007em.rf","startRow":"","endRow":""} [] 311,3
100+
1t< file:{"path":"hdfs://localhost:8020/accumulo/tables/1t/default_tablet/F00007fg.rf","startRow":"","endRow":""} [] 230,1
101+
100102
```
101103

102104
```
103-
$ /path/to/accumulo rfile-info -d hdfs://localhost/accumulo/tables/1t/default_tablet/F00007fq.rf
105+
$ accumulo file rfile-info -d hdfs://localhost:8020/accumulo/tables/1t/default_tablet/F00007fq.rf
104106
RFile Version : 8
105107
106108
Locality group : <DEFAULT>
@@ -127,7 +129,7 @@ Meta block : RFile.index
127129
Compact the RFiles and verify the key-value pair was removed. The new RFile will start with 'A'.
128130

129131
```
130-
$ /path/to/accumulo shell -u username -p secret
132+
$ accumulo shell --user root --password secret
131133
username@instance> compact -t examples.deleteKeyValuePair -w
132134
2019-04-17 08:17:15,468 [shell.Shell] INFO : Compacting table ...
133135
2019-04-17 08:17:16,143 [shell.Shell] INFO : Compaction of table examples.deleteKeyValuePair
@@ -136,11 +138,12 @@ completed for given range
136138

137139
```
138140
username@instance> scan -t accumulo.metadata -c file -r 1t<
139-
lt< file:hdfs://localhost:8020/accumulo/tables/1t/default_tablet/A00007g1.rf
141+
1t< file:{"path":"hdfs://localhost:8020/accumulo/tables/1t/default_tablet/A00007g1.rf","startRow":"","endRow":""} [] 293,2
142+
140143
```
141144

142145
```
143-
$ /path/to/accumulo rfile-info -v hdfs://localhost/accumulo/tables/1t/default_tablet/A00007g1.rf
146+
$ accumulo file rfile-info -v hdfs://localhost:8020/accumulo/tables/1t/default_tablet/A00007g1.rf
144147
RFile Version : 8
145148
146149
Locality group : <DEFAULT>

0 commit comments

Comments
 (0)