public static int getMajorVersion(String version) {
    return Integer.parseInt(Iterables.get(Splitter.on('.').split(version), 0));
  }
Returns the version components as String objects Examples: "1.4.3" returns ["1", "4", "3"],
"4.5.6-SNAPSHOT" returns ["4", "5", "6", "-1"] "4.5.6-beta" returns ["4", "5", "6", "-2"],
"4.5.6-alpha" returns ["4", "5", "6", "-3"] "4.5.6-UNKNOW" returns ["4", "5", "6", "-4"]
@return the components of the version string
hbase-common/src/main/java/org/apache/hadoop/hbase/util/VersionInfo.java