Skip to content
Permalink
Browse files
Add missing licenses that caused the build to fail (#44) (#47)
updated .md files
  • Loading branch information
elinaawise authored and keith-turner committed Apr 23, 2019
1 parent 34e3000 commit 1affb42923f35f7a1843cf8ee9adcf4dbaa69459
Showing 4 changed files with 15 additions and 8 deletions.
@@ -24,7 +24,7 @@ table reference that jar.

Execute the following command in the shell.

$ hadoop fs -copyFromLocal /path/to/accumulo/test/src/test/resources/FooFilter.jar /user1/lib
$ hadoop fs -copyFromLocal /path/to/accumulo/test/src/main/resources/FooFilter.jar /user1/lib

Execute following in Accumulo shell to setup classpath context

@@ -38,7 +38,7 @@ The following command makes this table use the configured classpath context

root@test15 nofoo> config -t nofoo -s table.classpath.context=cx1

The following command configures an iterator thats in FooFilter.jar
The following command configures an iterator that's in FooFilter.jar

root@test15 nofoo> setiter -n foofilter -p 10 -scan -minc -majc -class org.apache.accumulo.test.FooFilter
Filter accepts or rejects each Key/Value pair
@@ -52,8 +52,8 @@ The commands below show the filter is working.
noo1 f1:q1 [] v2
root@test15 nofoo>

Below, an attempt is made to add the FooFilter to a table thats not configured
to use the clasppath context cx1. This fails util the table is configured to
Below, an attempt is made to add the FooFilter to a table that's not configured
to use the classpath context cx1. This fails util the table is configured to
use cx1.

root@test15 nofoo> createtable nofootwo
@@ -24,9 +24,16 @@ user. In the example below threads are spun up for alice, bob, eve, mallory,
and trent to reserve room06 on 20140101. Bob ends up getting the reservation
and everyone else is put on a wait list. The example code will take any string
for what, when and who.


$ /path/to/accumulo org.apache.accumulo.server.util.ListInstances

Instance Name | Instance ID | Master
---------------------+--------------------------------------+-------------------------------
<instance name> | 9f8f2a97-432f-4e66-b153-861e2a1ca246 | localhost:9999

$ /path/to/accumulo shell -u root -p secret -e "createtable ars"
$ ./bin/runex reservations.ARS
>connect test16 localhost root secret ars
>connect <instance name> localhost root secret ars
connected
>
Commands :
@@ -36,7 +36,7 @@ specified colum. Here's how you run the map/reduce job
Now we can scan the table and see the hashes:

$ accumulo shell
username@instance> scan -t input
username@instance> scan -t rowhash
a-row cf:cq [] value
a-row cf-HASHTYPE:cq-MD5BASE64 [] IGPBYI1uC6+AJJxC4r5YBA==
b-row cf:cq [] value
@@ -45,7 +45,7 @@ The following will extract the rows containing the column "cf:cq":

We can see the output of our little map-reduce job:

$ hadoop fs -text /tmp/output/output/part-m-00000
$ hadoop fs -text /tmp/output/part-m-00000
catrow cf:cq [] catvalue
dogrow cf:cq [] dogvalue
$

0 comments on commit 1affb42

Please sign in to comment.