medined / d4m

Java support for the D4M Accumulo schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

D4M

Build Status - Travis CI
Build Status - Shippable

This project provides a Java API to create the tables needed for the Accumulo D4M schema (described at https://github.com/medined/D4M_Schema).

Getting It

<dependency>
  <groupId>com.codebits</groupId>
  <artifactId>d4m</artifactId>
  <version>1.0.2</version>
  <type>jar</type>
</dependency>

How To Use

This project helps you to use the D4M Accumulo schema by providing methods to create the needed Accumulo tables. This work is done by the TableManager object. The code below shows how the object is used.

MiniAccumuloConfigImpl miniAccumuloConfig = new MiniAccumuloConfigImpl(new File("/accumulo"), "password");
miniAccumuloConfig.setNumTservers(20);

MiniAccumuloClusterImpl accumulo = new MiniAccumuloClusterImpl(miniAccumuloConfig);
accumulo.start();

Connector connector = accumulo.getConnector("root", "password");

TableManager tableManager = new TableManager(connector, tableOperations);
tableManager.createTables();
tableManager.addSplitsForSha1();

About

Java support for the D4M Accumulo schema

License:MIT License


Languages

Language:Java 99.8%Language:Shell 0.2%