public static String getQualifiedPath(HiveConf conf, Path path) throws HiveException {
    FileSystem fs;
    if (path == null) {
      return null;
    }

    try {
      fs = path.getFileSystem(conf);
      return fs.makeQualified(path).toString();
    }
    catch (IOException e) {
      throw new HiveException(e);
    }
  }
Convert path to qualified path.

@param conf
         Hive configuration.
@param path
         Path to convert.
@return Qualified path
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java