コード例 #1
0
  private static void setup()
      throws AccumuloException, AccumuloSecurityException, IOException, InterruptedException {

    final String ACCUMULO_USER = "******";
    final String ACCUMULO_PASSWORD = "******";
    final String TABLE_NAMESPACE = "";

    tempAccumuloDir = Files.createTempDir();

    accumulo = new MiniAccumuloCluster(new MiniAccumuloConfig(tempAccumuloDir, ACCUMULO_PASSWORD));

    accumulo.start();

    dataStore =
        new AccumuloDataStore(
            new BasicAccumuloOperations(
                accumulo.getZooKeepers(),
                accumulo.getInstanceName(),
                ACCUMULO_USER,
                ACCUMULO_PASSWORD,
                TABLE_NAMESPACE));
  }