public URI getHarUri(URI original) throws URISyntaxException {
      URI relative = originalBase.relativize(original);
      if (relative.isAbsolute()) {
        throw new URISyntaxException("Could not create URI for location.",
            "Relative: " + relative + " Base: " + base + " OriginalBase: "
                + originalBase);
      }
      return base.resolve(relative);
    }
Creates helper for archive.
@param archive absolute location of archive in underlying filesystem
@param originalBase directory for which Hadoop archive was created
ql/src/java/org/apache/hadoop/hive/ql/exec/ArchiveUtils.java