org.apache.drill.yarn.zk.ZKClusterCoordinatorDriver.setPorts()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(71)

本文整理了Java中org.apache.drill.yarn.zk.ZKClusterCoordinatorDriver.setPorts()方法的一些代码示例,展示了ZKClusterCoordinatorDriver.setPorts()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKClusterCoordinatorDriver.setPorts()方法的具体详情如下:
包路径:org.apache.drill.yarn.zk.ZKClusterCoordinatorDriver
类名称:ZKClusterCoordinatorDriver
方法名:setPorts

ZKClusterCoordinatorDriver.setPorts介绍

暂无

代码示例

代码示例来源:origin: apache/drill

.setRetryCount(retryCount)
  .setRetryDelayMs(retryDelayMs)
  .setPorts(userPort, bitPort, bitPort + 1);
ZKRegistry zkRegistry = new ZKRegistry(driver);
dispatcher.registerAddOn(new ZKRegistryAddOn(zkRegistry));

代码示例来源:origin: apache/drill

/**
 * Validate that the key format used for endpoint is the same as that
 * generated for hosts coming from YARN.
 */
@Test
public void testFormat() {
 DrillbitEndpoint dbe = makeEndpoint(TEST_HOST);
 assertEquals(makeKey(TEST_HOST), ZKClusterCoordinatorDriver.asString(dbe));
 ZKClusterCoordinatorDriver driver = new ZKClusterCoordinatorDriver()
   .setPorts(123, 456, 789);
 assertEquals(makeKey(TEST_HOST), driver.toKey(TEST_HOST));
 // Internal default ports (used mostly for testing.)
 driver = new ZKClusterCoordinatorDriver();
 assertEquals("fred:31010:31011:31012", driver.toKey(FRED_HOST));
}

代码示例来源:origin: apache/drill

.setPorts(TEST_USER_PORT, TEST_CONTROL_PORT, TEST_DATA_PORT).build();
ZKRegistry registry = new ZKRegistry(driver);
TestRegistryHandler handler = new TestRegistryHandler();

相关文章