incubator-accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Medinets <>
Subject Using to run InsertWithBatchWriter example.
Date Wed, 04 Jan 2012 19:27:56 GMT
$ cd /home/ubuntu/accumulo-1.5.0-incubating-SNAPSHOT
$ bin/ lib/accumulo-examples-1.5.0-incubating-SNAPSHOT.jar
development localhost hello root ubuntu

This command produces this error:

  Usage: bin/ accumulo-examplesjar
accumulo.examples.helloworld.InsertWithBatchWriter <instance name>
<zoo keepers> <tableName> <username> <password>

I have compiled the InsertWithBatchWriter class by removing the usage
check and directly setting the class variables:

    String instanceName = "development";
    String zooKeepers = "localhost";
    String tableName = "hello";
    String user = "root";
    byte[] pass = "password".getBytes();

The class executed and inserted the information.

BTW, you might notice that the usage message is no longer accurate.
The name of the jar file and the class package have changed. Is it
time to update all of the usage messages?

View raw message