org.apache.hadoop.hdfs.server.namenode.ha.IPFailoverProxyProvider的实例源码

项目:hadoop    文件TestDFSClientFailover.java   
/**
 * Test to verify IPFailoverProxyProvider is not requiring logical URI.
 */
@Test
public void testIPFailoverProxyProviderLogicalUri() throws Exception {
  // setup the config with the IP failover proxy provider class
  Configuration config = new HdfsConfiguration(conf);
  URI nnUri = cluster.getURI(0);
  config.set(DFS_CLIENT_FAIlovER_PROXY_PROVIDER_KEY_PREFIX + "." +
      nnUri.getHost(),IPFailoverProxyProvider.class.getName());

  assertFalse("IPFailoverProxyProvider should not use logical URI.",HAUtil.useLogicalUri(config,nnUri));
}
项目:aliyun-oss-hadoop-fs    文件TestDFSClientFailover.java   
/**
 * Test to verify IPFailoverProxyProvider is not requiring logical URI.
 */
@Test
public void testIPFailoverProxyProviderLogicalUri() throws Exception {
  // setup the config with the IP failover proxy provider class
  Configuration config = new HdfsConfiguration(conf);
  URI nnUri = cluster.getURI(0);
  config.set(HdfsClientConfigKeys.Failover.PROXY_PROVIDER_KEY_PREFIX + "." +
      nnUri.getHost(),nnUri));
}
项目:big-c    文件TestDFSClientFailover.java   
/**
 * Test to verify IPFailoverProxyProvider is not requiring logical URI.
 */
@Test
public void testIPFailoverProxyProviderLogicalUri() throws Exception {
  // setup the config with the IP failover proxy provider class
  Configuration config = new HdfsConfiguration(conf);
  URI nnUri = cluster.getURI(0);
  config.set(DFS_CLIENT_FAIlovER_PROXY_PROVIDER_KEY_PREFIX + "." +
      nnUri.getHost(),nnUri));
}
项目:hadoop-2.6.0-cdh5.4.3    文件TestDFSClientFailover.java   
/**
 * Test to verify IPFailoverProxyProvider is not requiring logical URI.
 */
@Test
public void testIPFailoverProxyProviderLogicalUri() throws Exception {
  // setup the config with the IP failover proxy provider class
  Configuration config = new HdfsConfiguration(conf);
  URI nnUri = cluster.getURI(0);
  config.set(DFS_CLIENT_FAIlovER_PROXY_PROVIDER_KEY_PREFIX + "." +
      nnUri.getHost(),nnUri));
}
项目:FlexMap    文件TestDFSClientFailover.java   
/**
 * Test to verify IPFailoverProxyProvider is not requiring logical URI.
 */
@Test
public void testIPFailoverProxyProviderLogicalUri() throws Exception {
  // setup the config with the IP failover proxy provider class
  Configuration config = new HdfsConfiguration(conf);
  URI nnUri = cluster.getURI(0);
  config.set(DFS_CLIENT_FAIlovER_PROXY_PROVIDER_KEY_PREFIX + "." +
      nnUri.getHost(),nnUri));
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...