Package org.apache.hadoop.hdfs.web

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


  }
 
  @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

Related Classes of org.apache.hadoop.hdfs.web.SWebHdfsFileSystem

Copyright © 2018 www.massapicom. 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.