Example usage for org.apache.hadoop.hdfs DFSConfigKeys DFS_CLIENT_BLOCK_WRITE_LOCATEFOLLOWINGBLOCK_RETRIES_KEY

List of usage examples for org.apache.hadoop.hdfs DFSConfigKeys DFS_CLIENT_BLOCK_WRITE_LOCATEFOLLOWINGBLOCK_RETRIES_KEY

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs DFSConfigKeys DFS_CLIENT_BLOCK_WRITE_LOCATEFOLLOWINGBLOCK_RETRIES_KEY.

Prototype

String DFS_CLIENT_BLOCK_WRITE_LOCATEFOLLOWINGBLOCK_RETRIES_KEY

To view the source code for org.apache.hadoop.hdfs DFSConfigKeys DFS_CLIENT_BLOCK_WRITE_LOCATEFOLLOWINGBLOCK_RETRIES_KEY.

Click Source Link

Usage

From source file:org.apache.kylin.engine.mr.HadoopUtil.java

License:Apache License

private static Configuration healSickConfig(Configuration conf) {
    // why we have this hard code?
    conf.set(DFSConfigKeys.DFS_CLIENT_BLOCK_WRITE_LOCATEFOLLOWINGBLOCK_RETRIES_KEY, "8");

    // https://issues.apache.org/jira/browse/KYLIN-953
    if (StringUtils.isBlank(conf.get("hadoop.tmp.dir"))) {
        conf.set("hadoop.tmp.dir", "/tmp");
    }/*from   ww w. j av a 2s  .  co  m*/
    if (StringUtils.isBlank(conf.get("hbase.fs.tmp.dir"))) {
        conf.set("hbase.fs.tmp.dir", "/tmp");
    }
    return conf;
}