Package org.apache.accumulo.minicluster

Examples of org.apache.accumulo.minicluster.MiniAccumuloCluster


 
  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    folder.create();
    MiniAccumuloConfig cfg = new MiniAccumuloConfig(folder.newFolder("miniAccumulo"), secret);
    cluster = new MiniAccumuloCluster(cfg);
    cluster.start();
   
    System.setProperty("HOME", folder.getRoot().getAbsolutePath());
   
    // start the shell
View Full Code Here


    }
   
    if (useMini) {
      log.info("Creating mini cluster");
      final File folder = Files.createTempDir();
      final MiniAccumuloCluster accumulo = new MiniAccumuloCluster(folder, "secret");
      accumulo.start();
      opts.prop.setProperty("instance", accumulo.getInstanceName());
      opts.prop.setProperty("zookeepers", accumulo.getZooKeepers());
      Runtime.getRuntime().addShutdownHook(new Thread() {
        public void start() {
          try {
            accumulo.stop();
          } catch (Exception e) {
            throw new RuntimeException();
          } finally {
            folder.delete();
          }
View Full Code Here

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    folder.create();
    MiniAccumuloConfig cfg = new MiniAccumuloConfig(folder.newFolder("miniAccumulo"), secret);
    cluster = new MiniAccumuloCluster(cfg);
    cluster.start();

    System.setProperty("HOME", folder.getRoot().getAbsolutePath());

    // use reflection to call this method so it does not need to be made public
View Full Code Here

   
    folder.create();
   
    Logger.getLogger("org.apache.zookeeper").setLevel(Level.ERROR);
   
    accumulo = new MiniAccumuloCluster(folder.getRoot(), "superSecret");
   
    accumulo.start();
   
  }
View Full Code Here

  @BeforeClass
  public static void setupMiniCluster() throws Exception {
    folder.create();
    MiniAccumuloConfig config = new MiniAccumuloConfig(folder.getRoot(), secret)
            .setNumTservers (1);
    accumulo = new MiniAccumuloCluster(config);
    accumulo.start();
   
    Properties props = new Properties();
    props.put("instance", accumulo.getInstanceName());
    props.put("zookeepers", accumulo.getZooKeepers());
View Full Code Here

  private DataStore<String, Employee> employeeStore;

  @Before
  @SuppressWarnings("unchecked")
  public void setUp() throws Exception {
    cluster = new MiniAccumuloCluster(temporaryFolder.getRoot(), PASSWORD);
    cluster.start();

    Properties properties = DataStoreFactory.createProps();
    properties.setProperty(
        GORA_DATASTORE + AccumuloStore.MOCK_PROPERTY,
View Full Code Here

    @BeforeClass
    public static void setupClusters() throws Exception {
        MiniAccumuloConfig macConf = new MiniAccumuloConfig(tmpdir, "password");
        macConf.setNumTservers(1);

        accumuloCluster = new MiniAccumuloCluster(macConf);
        accumuloCluster.start();
    }
View Full Code Here

    tempDir = new File(temp.getParent(), "accumulo"
      + System.currentTimeMillis());
    tempDir.mkdir();
    tempDir.deleteOnExit();
    temp.delete();
    accumuloCluster = new MiniAccumuloCluster(tempDir, ACCUMULO_PASSWORD);
    accumuloCluster.start();
  }
View Full Code Here

    } catch (Exception e) {
      // Couldn't load the 1.6 MiniAccumuloConfigImpl which has
      // the classpath control
      LOG.warn("Could not load 1.6 minicluster classes", e);

      return new MiniAccumuloCluster(tempDir, ACCUMULO_PASSWORD);
    }
  }
View Full Code Here

    @BeforeClass
    public static void setupClusters() throws Exception {
        MiniAccumuloConfig macConf = new MiniAccumuloConfig(tmpdir, "password");
        macConf.setNumTservers(1);

        accumuloCluster = new MiniAccumuloCluster(macConf);
        accumuloCluster.start();
    }
View Full Code Here

TOP

Related Classes of org.apache.accumulo.minicluster.MiniAccumuloCluster

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.