I am slowly learning Accumulo command and am running into issues running the Apache Hello World Example to batch ingest 10K rows (50K entries) into accumulo. https://accumulo.apache.org/1.7/examples/
I used the uno build to get my HDFS, zookeeper and Accumulo (2.0) up and running. I can connect to hadoop and Accumulo using web browser. I can logon to Accumulo through shell and have successfully created the table hellotable. The instructions from the Apache example then say to launch the Java program that bulk inserts with a BatchWriter. The generic example command is as follows:
$ ./bin/accumulo org.apache.accumulo.examples.simple.helloworld.InsertWithBatchWriter instance zookeepers username password hellotable
with my installed information, I am running the following command:
My instance of Accumulo is uno my user name is root and the password is secret
$ accumulo org.apache.accumulo.examples.simple.helloworld.InsertWithBatchWriter uno zookeepers root secret hellotable
When I run the command I get following JAVA and accumulo related errors:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/bob/fluo-uno/install/accumulo-2.0.0/lib/slf4j-log4j12-1.7.26.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/bob/fluo-uno/install/apache-zookeeper-3.6.1-bin/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Invalid argument: Java <main class> 'org.apache.accumulo.examples.simple.helloworld.InsertWithBatchWriter' was not found. Please use the wholly qualified package name.
How can I modify the command to execute cleanly?
Thanks
The examples you are trying are specifically for Accumulo version 1.7 (as indicated by the URL), which previously shipped with an examples jar on the default class path. However, you have indicated you are running Accumulo 2.0.
Those examples are not written for 2.0, and the examples were moved to a separate repository, and will not be on the Accumulo class path out of the box. The updated example code can be found at https://github.com/apache/accumulo-examples if you wish to try, though I do not know how ready for mainstream use that code is.
You can also try the tour on the website.