Examples of SWebHdfsFileSystem


Examples of org.apache.hadoop.hdfs.web.SWebHdfsFileSystem

  }

  @Test
  public void testSWebHdfsCustomDefaultPorts() throws IOException {
    URI uri = URI.create("swebhdfs://localhost");
    SWebHdfsFileSystem fs = (SWebHdfsFileSystem) FileSystem.get(uri, conf);

    assertEquals(456, fs.getDefaultPort());
    assertEquals(uri, fs.getUri());
    assertEquals("127.0.0.1:456", fs.getCanonicalServiceName());
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.web.SWebHdfsFileSystem

  }
 
  @Test
  public void testSwebHdfsCustomUriPortWithCustomDefaultPorts() throws IOException {
    URI uri = URI.create("swebhdfs://localhost:789");
    SWebHdfsFileSystem fs = (SWebHdfsFileSystem) FileSystem.get(uri, conf);

    assertEquals(456, fs.getDefaultPort());
    assertEquals(uri, fs.getUri());
    assertEquals("127.0.0.1:789", fs.getCanonicalServiceName());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.