public class ProcessBasedLocalHBaseCluster extends Object
MiniHBaseCluster
, starts daemons as separate processes, allowing to
do real kill testing.Constructor and Description |
---|
ProcessBasedLocalHBaseCluster(Configuration conf,
int numDataNodes,
int numRegionServers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getConf() |
void |
killMaster() |
void |
killRegionServer(int port) |
void |
shutdown() |
void |
startHBase() |
void |
startMaster(int port) |
void |
startMiniDFS()
Makes this local HBase cluster use a mini-DFS cluster.
|
void |
startRegionServer(int port) |
void |
startZK() |
public ProcessBasedLocalHBaseCluster(Configuration conf, int numDataNodes, int numRegionServers)
hbaseHome
- the top directory of the HBase source treepublic void startMiniDFS() throws Exception
startHBase()
.IOException
Exception
public void startHBase() throws IOException
IOException
public void startRegionServer(int port)
public void startMaster(int port)
public void killRegionServer(int port) throws IOException
IOException
public void killMaster() throws IOException
IOException
public void startZK()
public Configuration getConf()
public void shutdown()