use of org.apache.drill.exec.work.foreman.rm.DefaultResourceManager in project drill by apache.
the class TestRMConfigLoad method testDefaultRMWithLocalCoordinatorAndRMDisabled.
@Test
public void testDefaultRMWithLocalCoordinatorAndRMDisabled() throws Exception {
ClusterFixtureBuilder fixtureBuilder = ClusterFixture.builder(dirTestWatcher).configProperty(ExecConstants.RM_ENABLED, false);
try (ClusterFixture cluster = fixtureBuilder.build()) {
ResourceManager resourceManager = cluster.drillbit().getContext().getResourceManager();
assertTrue(resourceManager instanceof DefaultResourceManager);
}
}
use of org.apache.drill.exec.work.foreman.rm.DefaultResourceManager in project drill by apache.
the class TestRMConfigLoad method testDefaultRMWithLocalCoordinatorAndRMEnabled.
@Test
public void testDefaultRMWithLocalCoordinatorAndRMEnabled() throws Exception {
ClusterFixtureBuilder fixtureBuilder = ClusterFixture.builder(dirTestWatcher).configProperty(ExecConstants.RM_ENABLED, true);
try (ClusterFixture cluster = fixtureBuilder.build()) {
ResourceManager resourceManager = cluster.drillbit().getContext().getResourceManager();
assertTrue(resourceManager instanceof DefaultResourceManager);
}
}
use of org.apache.drill.exec.work.foreman.rm.DefaultResourceManager in project drill by apache.
the class TestRMConfigLoad method testDefaultRMOnlyRMDisabled.
@Test
public void testDefaultRMOnlyRMDisabled() throws Exception {
ClusterFixtureBuilder fixtureBuilder = ClusterFixture.builder(dirTestWatcher).configProperty(ExecConstants.RM_ENABLED, false).configProperty(ExecConstants.DRILL_PORT_HUNT, true).withLocalZk();
try (ClusterFixture cluster = fixtureBuilder.build()) {
ResourceManager resourceManager = cluster.drillbit().getContext().getResourceManager();
assertTrue(resourceManager instanceof DefaultResourceManager);
}
}
Aggregations