public class TestZkRegistry extends BaseTest
Modifier and Type | Class and Description |
---|---|
static class |
TestZkRegistry.TestTask |
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER_ID |
static int |
TEST_CONTROL_PORT |
static int |
TEST_DATA_PORT |
static int |
TEST_USER_PORT |
static String |
ZK_ROOT |
Constructor and Description |
---|
TestZkRegistry() |
Modifier and Type | Method and Description |
---|---|
static org.apache.curator.framework.CuratorFramework |
connectToZk(String connectString)
Connect to the test ZK for the simulated Drillbit side of the test.
|
static String |
makeKey(String host) |
void |
testBasics()
Basic setup: start a ZK and verify that the initial endpoint list is empty.
|
void |
testCycle()
Test a typical life cycle: existing Drillbit on AM start, add a Drilbit
(simulates a drillbit starting), and remove a drillbit (simulates a
Drillbit ending).
|
void |
testFormat()
Validate that the key format used for endpoint is the same as that
generated for hosts coming from YARN.
|
void |
testZKRegistry() |
public static final int TEST_USER_PORT
public static final int TEST_CONTROL_PORT
public static final int TEST_DATA_PORT
public static final String ZK_ROOT
public static final String CLUSTER_ID
public void testFormat()
public void testBasics() throws Exception
Exception
public void testCycle() throws Exception
Exception
public static org.apache.curator.framework.CuratorFramework connectToZk(String connectString)
connectString
- Copyright © 2021 The Apache Software Foundation. All rights reserved.