Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.72 KB

File metadata and controls

44 lines (31 loc) · 1.72 KB

Apache Accumulo Hello World Example

This tutorial uses the following Java classes:

  • Insert.java - Inserts 10K rows (50K entries) into accumulo with each row having 5 entries
  • Read.java - Reads data between two rows

Inserts data with a BatchWriter:

$ ./bin/runex helloworld.Insert

Open the Accumulo Monitor, navigate to the examples.hellotable table, and verify that it shows 50K entries. You may need to replace localhost with the name or IP address of your server.

http://localhost:9995/

To view the entries, use the shell (run accumulo shell --user <username> --password <password> to access it) to scan the table:

username@instance> table examples.hellotable
username@instance examples.hellotable> scan

You can also use a Java class to scan the table:

$ ./bin/runex helloworld.Read