Example usage for org.apache.hadoop.hdfs.web WebHdfsConstants WEBHDFS_SCHEME

List of usage examples for org.apache.hadoop.hdfs.web WebHdfsConstants WEBHDFS_SCHEME

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.web WebHdfsConstants WEBHDFS_SCHEME.

Prototype

String WEBHDFS_SCHEME

To view the source code for org.apache.hadoop.hdfs.web WebHdfsConstants WEBHDFS_SCHEME.

Click Source Link

Usage

From source file:org.apache.hadoop.example.ITUseMiniCluster.java

License:Apache License

@Test
public void useWebHDFS() throws IOException, URISyntaxException {
    try (FileSystem fs = WebHdfsTestUtil.getWebHdfsFileSystem(cluster.getConfiguration(0),
            WebHdfsConstants.WEBHDFS_SCHEME)) {
        simpleReadAfterWrite(fs);/*from  w ww .jav a  2  s  .  c  o m*/
    }
}