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, ...