public static String generateTempTableLocation(Configuration conf) throws MetaException {
    Path path = new Path(SessionState.getTempTableSpace(conf), UUID.randomUUID().toString());
    path = Warehouse.getDnsPath(path, conf);
    return path.toString();
  }
Create a given path if it doesn't exist.

@param conf
@param path
@param permission
@param isLocal
@param isCleanUp
@return
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java