Skip to content

medined/d4m

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages