public static boolean matchCurrentHadoopVersion(int majorVersion) {
    return majorVersion == 2 && isHadoop2Env();
  }
Check if a Hadoop version matches the current Hadoop environment

@param majorVersion the major version number of hadoop
@return true if we have a major version match else false
app/com/linkedin/drelephant/analysis/HadoopSystemContext.java