From b4b89786efbcd1de510c6daafd72848a50dfe403 Mon Sep 17 00:00:00 2001 From: Amanda Villarreal Date: Wed, 10 Jun 2026 13:13:49 -0500 Subject: [PATCH] Updating commands in spark, reservations, terasort, and uniquecols --- docs/reservations.md | 6 +++--- docs/terasort.md | 2 +- docs/uniquecols.md | 20 ++++++++++---------- spark/README.md | 5 +++-- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/docs/reservations.md b/docs/reservations.md index 4ce6672..0e31d7a 100644 --- a/docs/reservations.md +++ b/docs/reservations.md @@ -25,14 +25,14 @@ 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 + $ accumulo inst list-instances Instance Name | Instance ID | Master ---------------------+--------------------------------------+------------------------------- | 9f8f2a97-432f-4e66-b153-861e2a1ca246 | localhost:9999 - $ /path/to/accumulo shell -u root -p secret -e "createnamespace examples" - $ /path/to/accumulo shell -u root -p secret -e "createtable examples.ars" + $ accumulo shell --user root --password secret --execute-command "createnamespace examples" + $ accumulo shell --user root --password secret --execute-command "createtable examples.ars" $ ./bin/runex reservations.ARS >connect localhost root secret examples.ars connected diff --git a/docs/terasort.md b/docs/terasort.md index 5539883..3ff7829 100644 --- a/docs/terasort.md +++ b/docs/terasort.md @@ -23,7 +23,7 @@ hadoop terasort benchmark. First, make sure the 'examples' namespace exists. If it already exists, the error message can be ignored. - $ accumulo shell -u root -p secret -e 'createnamespace examples' + $ accumulo shell --user root --password secret --execute-command 'createnamespace examples' This example is run with arguments describing the amount of data: diff --git a/docs/uniquecols.md b/docs/uniquecols.md index 7441fa2..b081d5e 100644 --- a/docs/uniquecols.md +++ b/docs/uniquecols.md @@ -24,7 +24,7 @@ Create a table and add rows that all have identical column family and column qualifiers. ``` -$ /path/to/accumulo shell -u username -p secret +$ accumulo shell --user root --password secret username@instance> createnamespace examples username@instance> createtable examples.unique username@instance examples.unique> insert row1 fam1 qual1 v1 @@ -58,15 +58,15 @@ will be spread among various `part-r-xxxxx` files. Go back to the shell and add some additional entries. ```text -$ /path/to/accumulo shell -u username -p secret -username@instance> table unique -username@instance example.unique> insert row1 fam2 qual2 v2 -username@instance example.unique> insert row1 fam3 qual2 v2 -username@instance example.unique> insert row1 fam2 qual2 v2 -username@instance example.unique> insert row2 fam2 qual2 v2 -username@instance example.unique> insert row3 fam2 qual2 v2 -username@instance example.unique> insert row3 fam3 qual3 v2 -username@instance example.unique> insert row3 fam3 qual4 v2 +$ accumulo shell --user root --password secret +username@instance> table examples.unique +username@instance examples.unique> insert row1 fam2 qual2 v2 +username@instance examples.unique> insert row1 fam3 qual2 v2 +username@instance examples.unique> insert row1 fam2 qual2 v2 +username@instance examples.unique> insert row2 fam2 qual2 v2 +username@instance examples.unique> insert row3 fam2 qual2 v2 +username@instance examples.unique> insert row3 fam3 qual3 v2 +username@instance examples.unique> insert row3 fam3 qual4 v2 ``` Re-running the command will now find any additional unique column values. diff --git a/spark/README.md b/spark/README.md index af19029..0709c47 100644 --- a/spark/README.md +++ b/spark/README.md @@ -36,9 +36,10 @@ a Spark application that does following: bulk import to Accumulo table 2. **Batchwriter** - Creates a `BatchWriter` in Spark code to write to the table. -This application can be run using the command: +This application can be run using the following commands: - ./run.sh batch /path/to/accumulo-client.properties + $ cd /path/to/accumulo-examples/spark + $ ./run.sh batch /path/to/accumulo-client.properties Change `batch` to `bulk` to use Bulk import method.