public Path getLocalTmpPath() {
    return new Path(getLocalScratchDir(true), LOCAL_PREFIX + nextPathId());
  }
Get a tmp path on local host to store intermediate data.

@return next available tmp path on local fs
ql/src/java/org/apache/hadoop/hive/ql/Context.java