Package org.apache.accumulo.minicluster

Examples of org.apache.accumulo.minicluster.MiniAccumuloConfig


    private static MiniAccumuloCluster accumuloCluster;
    private PigServer pig;

    @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


    private static MiniAccumuloCluster accumuloCluster;
    private PigServer pig;

    @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

  protected void setupWithHiveConf(HiveConf conf) throws Exception {
    if (null == miniCluster) {
      String testTmpDir = System.getProperty("test.tmp.dir");
      File tmpDir = new File(testTmpDir, "accumulo");

      MiniAccumuloConfig cfg = new MiniAccumuloConfig(tmpDir, PASSWORD);
      cfg.setNumTservers(1);

      miniCluster = new MiniAccumuloCluster(cfg);

      miniCluster.start();
View Full Code Here

  @Test
  public void testFactoryReturn() throws IOException {
    File dir = Files.createTempDir();
    try {
      MiniAccumuloConfig cfg = new MiniAccumuloConfig(dir, "foo");
      Assert.assertEquals(MiniAccumuloCluster.class, AccumuloClusters.createMiniCluster(cfg).getClass());
      Assert.assertTrue(FileUtils.deleteQuietly(dir));
      Assert.assertTrue(dir.mkdirs());
      MiniAccumuloConfigImpl cfgImpl = new MiniAccumuloConfigImpl(dir, "foo");
      Assert.assertEquals(MiniAccumuloClusterImpl.class, AccumuloClusters.create(cfgImpl).getClass());
View Full Code Here

  @BeforeClass
  public static void setupMiniCluster() throws Exception {
    FileUtils.deleteQuietly(macTestFolder);
    macTestFolder.mkdirs();
    MiniAccumuloConfig config = new MiniAccumuloConfig(macTestFolder, secret).setNumTservers(1);
    accumulo = new MiniAccumuloCluster(config);
    accumulo.start();
    // wait for accumulo to be up and functional
    ZooKeeperInstance zoo = new ZooKeeperInstance(accumulo.getInstanceName(), accumulo.getZooKeepers());
    Connector c = zoo.getConnector("root", new PasswordToken(secret.getBytes()));
View Full Code Here

    accumuloPassword = System.getProperty("password");
    if (!isSet(zookeeper) || !isSet(accumuloInstance) || !isSet(accumuloUser) || !isSet(accumuloPassword)) {
      try {
        tempDir = Files.createTempDir();
        tempDir.deleteOnExit();
        final MiniAccumuloConfig config = new MiniAccumuloConfig(
            tempDir,
            DEFAULT_MINI_ACCUMULO_PASSWORD);
        config.setNumTservers(2);
        miniAccumulo = new MiniAccumuloCluster(
            config);
        if (SystemUtils.IS_OS_WINDOWS && isYarn()) {
          // this must happen after instantiating Mini Accumulo
          // Cluster because it ensures the accumulo directory is
View Full Code Here

TOP

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

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.