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

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

Introduction

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

Usage

From source file com.ibm.stocator.fs.cos.COSLocalDirAllocator.java

/** Extend LocalDirAllocator (An implementation of a round-robin scheme for
 * disk allocation for creating file) to avoid callign File.createTempFile().
 * We have found that createTempFile() results in slower runs on some machines
 * for reasons that are not clear to us.  Possibly this has to do with the
 * need to ensure that a file with the same name does not already exists.
 * We have replaced createTempFile() with code that generates a unique file