public static boolean isLocalFile(HiveConf conf, String fileName) {
    try {
      // do best effort to determine if this is a local file
      return isLocalFile(conf, new URI(fileName));
    } catch (URISyntaxException e) {
      LOG.warn("Unable to create URI from " + fileName, e);
    }
    return false;
  }
A best effort attempt to determine if if the file is a local file
@param conf
@param fileName
@return true if it was successfully able to determine that it is a local file
common/src/java/org/apache/hadoop/hive/common/FileUtils.java