@Override
  public BlockLocation[] getFileBlockLocations(FileStatus file, long start,
      long len) throws IOException {

    // In some places (e.g. FileInputFormat) this BlockLocation is used to
    // figure out sizes/offsets and so a completely blank one will not work.
    String [] hosts = {"DUMMY_HOST"};
    return new BlockLocation[]{new BlockLocation(null, hosts, 0, file.getLen())};
  }
HiveHarFileSystem - fixes issues with Hadoop's HarFileSystem
shims/common/src/main/java/org/apache/hadoop/hive/shims/HiveHarFileSystem.java