TestingHBaseCluster
instead.@InterfaceAudience.Public @Deprecated public class HBaseZKTestingUtility extends HBaseCommonTestingUtility
HBaseCommonTestingUtility
is that we can start a zookeeper cluster.HBaseCommonTestingUtility.PortAllocator
Modifier and Type | Field and Description |
---|---|
protected File |
clusterTestDir
Deprecated.
Directory (a subdirectory of dataTestDir) used by the dfs cluster if any
|
private boolean |
passedZkCluster
Deprecated.
Set if we were passed a zkCluster.
|
private MiniZooKeeperCluster |
zkCluster
Deprecated.
|
protected ZKWatcher |
zooKeeperWatcher
Deprecated.
|
BASE_TEST_DIRECTORY_KEY, BOOLEAN_PARAMETERIZED, COMPRESSION_ALGORITHMS, COMPRESSION_ALGORITHMS_PARAMETERIZED, conf, DEFAULT_BASE_TEST_DIRECTORY, LOG
Constructor and Description |
---|
HBaseZKTestingUtility()
Deprecated.
|
HBaseZKTestingUtility(org.apache.hadoop.conf.Configuration conf)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cleanupTestDir()
Deprecated.
Returns True if we removed the test dirs
|
(package private) org.apache.hadoop.fs.Path |
getClusterTestDir()
Deprecated.
|
MiniZooKeeperCluster |
getZkCluster()
Deprecated.
|
ZKWatcher |
getZooKeeperWatcher()
Deprecated.
Returns a ZKWatcher instance.
|
static ZKWatcher |
getZooKeeperWatcher(HBaseZKTestingUtility testUtil)
Deprecated.
Gets a ZKWatcher.
|
protected void |
setupClusterTestDir()
Deprecated.
Creates a directory for the cluster, under the test data
|
void |
setZkCluster(MiniZooKeeperCluster zkCluster)
Deprecated.
|
void |
shutdownMiniZKCluster()
Deprecated.
Shuts down zk cluster created by call to
startMiniZKCluster() or does nothing. |
MiniZooKeeperCluster |
startMiniZKCluster()
Deprecated.
Call this if you only want a zk cluster.
|
private MiniZooKeeperCluster |
startMiniZKCluster(File dir,
int zooKeeperServerNum,
int[] clientPortList)
Deprecated.
Start a mini ZK cluster.
|
MiniZooKeeperCluster |
startMiniZKCluster(int zooKeeperServerNum,
int... clientPortList)
Deprecated.
Call this if you only want a zk cluster.
|
cleanupTestDir, createSubDir, deleteDir, deleteOnExit, getConfiguration, getDataTestDir, getDataTestDir, getRandomDir, getRandomUUID, randomFreePort, setupDataTestDir, waitFor, waitFor, waitFor
private MiniZooKeeperCluster zkCluster
private boolean passedZkCluster
protected ZKWatcher zooKeeperWatcher
protected File clusterTestDir
public HBaseZKTestingUtility()
public HBaseZKTestingUtility(org.apache.hadoop.conf.Configuration conf)
org.apache.hadoop.fs.Path getClusterTestDir()
HBaseCommonTestingUtility#getBaseTestDir()
protected void setupClusterTestDir()
public MiniZooKeeperCluster startMiniZKCluster() throws Exception
Exception
shutdownMiniZKCluster()
public MiniZooKeeperCluster startMiniZKCluster(int zooKeeperServerNum, int... clientPortList) throws Exception
Exception
shutdownMiniZKCluster()
private MiniZooKeeperCluster startMiniZKCluster(File dir, int zooKeeperServerNum, int[] clientPortList) throws Exception
Exception
public MiniZooKeeperCluster getZkCluster()
public void setZkCluster(MiniZooKeeperCluster zkCluster)
public void shutdownMiniZKCluster() throws IOException
startMiniZKCluster()
or does nothing.IOException
startMiniZKCluster()
public ZKWatcher getZooKeeperWatcher() throws IOException
IOException
public static ZKWatcher getZooKeeperWatcher(HBaseZKTestingUtility testUtil) throws IOException
IOException
public boolean cleanupTestDir()
cleanupTestDir
in class HBaseCommonTestingUtility
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.