@@ -19,7 +19,7 @@ limitations under the License.
1919This 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
2323username@instance> createnamespace examples
2424username@instance> createtable examples.deleteKeyValuePair
2525username@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```
5555username@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
5960View 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
6364RFile Version : 8
6465
6566Locality group : <DEFAULT>
@@ -87,20 +88,21 @@ Meta block : RFile.index
8788Delete 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
9192username@instance> table examples.deleteKeyValuePair
9293username@instance examples.deleteKeyValuePair> delete 567890 name first
9394username@instance examples.deleteKeyValuePair> flush -w
9495```
9596
9697```
9798username@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
104106RFile Version : 8
105107
106108Locality group : <DEFAULT>
@@ -127,7 +129,7 @@ Meta block : RFile.index
127129Compact 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
131133username@instance> compact -t examples.deleteKeyValuePair -w
1321342019-04-17 08:17:15,468 [shell.Shell] INFO : Compacting table ...
1331352019-04-17 08:17:16,143 [shell.Shell] INFO : Compaction of table examples.deleteKeyValuePair
@@ -136,11 +138,12 @@ completed for given range
136138
137139```
138140username@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
144147RFile Version : 8
145148
146149Locality group : <DEFAULT>
0 commit comments