Example usage for org.apache.hadoop.hdfs.protocol HdfsConstants HDFS_URI_SCHEME

List of usage examples for org.apache.hadoop.hdfs.protocol HdfsConstants HDFS_URI_SCHEME

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.protocol HdfsConstants HDFS_URI_SCHEME.

Prototype

String HDFS_URI_SCHEME

To view the source code for org.apache.hadoop.hdfs.protocol HdfsConstants HDFS_URI_SCHEME.

Click Source Link

Document

URI Scheme for hdfs://namenode/ URIs.

Usage

From source file:com.mellanox.r4h.DistributedFileSystem.java

License:Apache License

/**
 * Return the protocol scheme for the FileSystem.
 * <p/>/*from w  w w .  j av a2 s. c  om*/
 * 
 * @return <code>hdfs</code>
 */
@Override
public String getScheme() {
    return HdfsConstants.HDFS_URI_SCHEME;
}

From source file:org.apache.ignite.internal.processors.hadoop.fs.GridHadoopFileSystemsUtils.java

License:Apache License

/**
 * Setup wrappers of filesystems to support the separate working directory.
 *
 * @param cfg Config for setup.//  w w w .  j av a  2 s  .com
 */
public static void setupFileSystems(Configuration cfg) {
    cfg.set("fs." + FsConstants.LOCAL_FS_URI.getScheme() + ".impl",
            GridHadoopLocalFileSystemV1.class.getName());
    cfg.set("fs.AbstractFileSystem." + FsConstants.LOCAL_FS_URI.getScheme() + ".impl",
            GridHadoopLocalFileSystemV2.class.getName());

    cfg.set("fs." + HdfsConstants.HDFS_URI_SCHEME + ".impl", GridHadoopDistributedFileSystem.class.getName());
}

From source file:org.apache.ignite.internal.processors.hadoop.fs.HadoopFileSystemsUtils.java

License:Apache License

/**
 * Setup wrappers of filesystems to support the separate working directory.
 *
 * @param cfg Config for setup./*  w w  w  .  j av a2 s .  co m*/
 */
public static void setupFileSystems(Configuration cfg) {
    cfg.set("fs." + FsConstants.LOCAL_FS_URI.getScheme() + ".impl", HadoopLocalFileSystemV1.class.getName());
    cfg.set("fs.AbstractFileSystem." + FsConstants.LOCAL_FS_URI.getScheme() + ".impl",
            HadoopLocalFileSystemV2.class.getName());

    cfg.set("fs." + HdfsConstants.HDFS_URI_SCHEME + ".impl", HadoopDistributedFileSystem.class.getName());
}