Example usage for org.apache.hadoop.fs LocalDirAllocator LocalDirAllocator

List of usage examples for org.apache.hadoop.fs LocalDirAllocator LocalDirAllocator

Introduction

In this page you can find the example usage for org.apache.hadoop.fs LocalDirAllocator LocalDirAllocator.

Prototype

public LocalDirAllocator(String contextCfgItemName) 

Source Link

Document

Create an allocator object

Usage

From source file:tajo.worker.Worker.java

License:Apache License

public Worker(final TajoConf conf) {
    this.conf = conf;
    lDirAllocator = new LocalDirAllocator(ConfVars.WORKER_TMP_DIR.varname);
    LOG.info(conf.getVar(ConfVars.WORKER_TMP_DIR));
    this.workDir = new File(conf.getVar(ConfVars.WORKER_TMP_DIR));
    sleeper = new Sleeper();
}