O'Reilly logo

Apache Accumulo for Developers by Guðmundur Jón Halldórsson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Authorization

Most clients are written in Java, but you can use the proxy API to interact with Accumulo in other languages. As we saw in the preceding example, when using security tokens we need to pass them to the Accumulo instance. Then, write the Java client and create the connection (a Java code), as follows:

String inName = "accumulo-demo";
String zooKeeperServers = "zkServer1,zkServer2,zkServer3";
Instance zkIn = new ZooKeeperInstance(inName, zooKeeperServers);
Connector conn = zkInstance.getConnector("myuser", "password");

Create authorization (a Java code), as follows:

Authorization auths = new Authorization("SecTokenA", "SecTokenB");
Scanner s = conn.createScanner("mydemotable4", auths);

There are many interesting projects supporting Accumulo, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required