.numRegionServers(0).createRootDir(false).build());
/** * Start up a minicluster of hbase, dfs, and zookeeper. * All other options will use default values, defined in {@link StartMiniClusterOption.Builder}. * @param numSlaves Slave node number, for both HBase region server and HDFS data node. * @param createRootDir Whether to create a new root or data directory path. * @return The mini HBase cluster created. * @see #shutdownMiniCluster() * @deprecated Use {@link #startMiniCluster(StartMiniClusterOption)} instead. */ @Deprecated public MiniHBaseCluster startMiniCluster(int numSlaves, boolean createRootDir) throws Exception { StartMiniClusterOption option = StartMiniClusterOption.builder() .numRegionServers(numSlaves).numDataNodes(numSlaves).createRootDir(createRootDir).build(); return startMiniCluster(option); }
/** * Start up a minicluster of hbase, dfs, and zookeeper. * All other options will use default values, defined in {@link StartMiniClusterOption.Builder}. * @param numMasters Master node number. * @param numSlaves Slave node number, for both HBase region server and HDFS data node. * @param createRootDir Whether to create a new root or data directory path. * @return The mini HBase cluster created. * @see #shutdownMiniCluster() * @deprecated Use {@link #startMiniCluster(StartMiniClusterOption)} instead. */ @Deprecated public MiniHBaseCluster startMiniCluster(int numMasters, int numSlaves, boolean createRootDir) throws Exception { StartMiniClusterOption option = StartMiniClusterOption.builder() .numMasters(numMasters).numRegionServers(numSlaves).createRootDir(createRootDir) .numDataNodes(numSlaves).build(); return startMiniCluster(option); }
/** * Start up a minicluster of hbase, dfs, and zookeeper. * All other options will use default values, defined in {@link StartMiniClusterOption.Builder}. * @param numMasters Master node number. * @param numRegionServers Number of region servers. * @param numDataNodes Number of datanodes. * @param dataNodeHosts The hostnames of DataNodes to run on. If not null, its size will overwrite * HDFS data node number. * @param masterClass The class to use as HMaster, or null for default. * @param rsClass The class to use as HRegionServer, or null for default. * @param createRootDir Whether to create a new root or data directory path. * @param createWALDir Whether to create a new WAL directory. * @return The mini HBase cluster created. * @see #shutdownMiniCluster() * @deprecated Use {@link #startMiniCluster(StartMiniClusterOption)} instead. */ @Deprecated public MiniHBaseCluster startMiniCluster(int numMasters, int numRegionServers, int numDataNodes, String[] dataNodeHosts, Class<? extends HMaster> masterClass, Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> rsClass, boolean createRootDir, boolean createWALDir) throws Exception { StartMiniClusterOption option = StartMiniClusterOption.builder() .numMasters(numMasters).masterClass(masterClass) .numRegionServers(numRegionServers).rsClass(rsClass) .numDataNodes(numDataNodes).dataNodeHosts(dataNodeHosts) .createRootDir(createRootDir).createWALDir(createWALDir) .build(); return startMiniCluster(option); }
/** * Starts up mini hbase cluster. * Usually you won't want this. You'll usually want {@link #startMiniCluster()}. * All other options will use default values, defined in {@link StartMiniClusterOption.Builder}. * @param numMasters Master node number. * @param numRegionServers Number of region servers. * @param rsPorts Ports that RegionServer should use. * @param masterClass The class to use as HMaster, or null for default. * @param rsClass The class to use as HRegionServer, or null for default. * @param createRootDir Whether to create a new root or data directory path. * @param createWALDir Whether to create a new WAL directory. * @return The mini HBase cluster created. * @see #shutdownMiniHBaseCluster() * @deprecated Use {@link #startMiniHBaseCluster(StartMiniClusterOption)} instead. */ @Deprecated public MiniHBaseCluster startMiniHBaseCluster(int numMasters, int numRegionServers, List<Integer> rsPorts, Class<? extends HMaster> masterClass, Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> rsClass, boolean createRootDir, boolean createWALDir) throws IOException, InterruptedException { StartMiniClusterOption option = StartMiniClusterOption.builder() .numMasters(numMasters).masterClass(masterClass) .numRegionServers(numRegionServers).rsClass(rsClass).rsPorts(rsPorts) .createRootDir(createRootDir).createWALDir(createWALDir).build(); return startMiniHBaseCluster(option); }
/** * Start up a minicluster of hbase, dfs, and zookeeper. * All other options will use default values, defined in {@link StartMiniClusterOption.Builder}. * @param numMasters Master node number. * @param numSlaves Slave node number, for both HBase region server and HDFS data node. * @param dataNodeHosts The hostnames of DataNodes to run on. If not null, its size will overwrite * HDFS data node number. * @param createRootDir Whether to create a new root or data directory path. * @return The mini HBase cluster created. * @see #shutdownMiniCluster() * @deprecated Use {@link #startMiniCluster(StartMiniClusterOption)} instead. */ @Deprecated public MiniHBaseCluster startMiniCluster(int numMasters, int numSlaves, String[] dataNodeHosts, boolean createRootDir) throws Exception { StartMiniClusterOption option = StartMiniClusterOption.builder() .numMasters(numMasters).numRegionServers(numSlaves).createRootDir(createRootDir) .numDataNodes(numSlaves).dataNodeHosts(dataNodeHosts).build(); return startMiniCluster(option); }
/** * Start up a minicluster of hbase, dfs, and zookeeper. * All other options will use default values, defined in {@link StartMiniClusterOption.Builder}. * @param numSlaves Slave node number, for both HBase region server and HDFS data node. * @param createRootDir Whether to create a new root or data directory path. * @param createWALDir Whether to create a new WAL directory. * @return The mini HBase cluster created. * @see #shutdownMiniCluster() * @deprecated Use {@link #startMiniCluster(StartMiniClusterOption)} instead. */ @Deprecated public MiniHBaseCluster startMiniCluster(int numSlaves, boolean createRootDir, boolean createWALDir) throws Exception { StartMiniClusterOption option = StartMiniClusterOption.builder() .numRegionServers(numSlaves).numDataNodes(numSlaves).createRootDir(createRootDir) .createWALDir(createWALDir).build(); return startMiniCluster(option); }
public void setupCluster() throws Exception { setupConf(UTIL.getConfiguration()); StartMiniClusterOption option = StartMiniClusterOption.builder() .numRegionServers(NUM_REGION_SERVERS).numDataNodes(NUM_REGION_SERVERS) .createRootDir(true).build(); UTIL.startMiniCluster(option); rootDir = UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir(); fs = rootDir.getFileSystem(UTIL.getConfiguration()); }
public void setupCluster() throws Exception { setupConf(UTIL.getConfiguration()); StartMiniClusterOption option = StartMiniClusterOption.builder() .numRegionServers(NUM_REGION_SERVERS).numDataNodes(NUM_REGION_SERVERS) .createRootDir(true).build(); UTIL.startMiniCluster(option); rootDir = UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir(); fs = rootDir.getFileSystem(UTIL.getConfiguration()); }