public static boolean isHadoop23() {
    String version = org.apache.hadoop.util.VersionInfo.getVersion();
    if (version.matches("\\b0\\.23\\..+\\b")||version.matches("\\b2\\..*")||version.matches("\\b3\\..*"))
      return true;
    return false;
  }
Returns the hive-site.xml config settings which do not appear in <code>jobConf<code> or
the hive-site.xml config settings which appear in <code>jobConf<code>, but have a
different value than HiveConf code defaults.
@param hiveSite the config settings as found in the hive-site.xml only.
@param jobConf the config settings used to launch the job.
@return the set difference between hiveSite and jobConf.
hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java