public Response getVersion(String module) throws IOException {
    if (module.toLowerCase().equals("hadoop")) {
      return getHadoopVersion();
    } else if (module.toLowerCase().equals("hive")) {
      return getHiveVersion();
    } else if (module.toLowerCase().equals("sqoop")) {
      return getSqoopVersion();
    } else if (module.toLowerCase().equals("pig")) {
      return getPigVersion();
    } else {
      return SimpleWebException.buildMessage(HttpStatus.NOT_FOUND_404, null,
          "Unknown module " + module);
    }
  }
Find the version of Hive, Hadoop, or Pig that is being used in this
interface.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/VersionDelegator.java