Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.66 KB

helloworld.md

File metadata and controls

42 lines (29 loc) · 1.66 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

On the accumulo status page at the URL below (you may need to replace 'localhost' with the name or IP of your server), you should see 50K entries

http://localhost:9995/

To view the entries, use the shell (run accumulo shell -u username -p 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