Hadoop version can be denoted only by dots. -------------------------------------------
Key: HIVE-1993 URL: https://issues.apache.org/jira/browse/HIVE-1993 Project: Hive Issue Type: Improvement Affects Versions: 0.6.0, 0.8.0 Reporter: Joep Rottinghuis Priority: Minor Hadoop major version must be delimited by dot on either side and not any other character. Applicable to trunk as well as 0.6 + HIVE-1264. For example what does NOT work in Hive's build.properties: {code} hadoop.version=0.20-security-something {code} Instead use a dot: The following jarname for hadoop (see entry in build.properties) {code} hadoop.version=0.20.security-something {code} Not really sure how much apetite there is to change this; Just filing Jira to warn other users. See lines 97-110 in hive/shims/src/common/java/org/apache/hadoop/hive/shims/ShimLoader.java: {code} /** * Return the major version of Hadoop currently on the classpath. * This is simply the first two components of the version number * (e.g "0.18" or "0.20") */ public static String getMajorVersion() { String vers = VersionInfo.getVersion(); String[] parts = vers.split("\\."); if (parts.length < 2) { throw new RuntimeException("Illegal Hadoop Version: " + vers + " (expected A.B.* format)"); } String majorVersion = parts[0] + "." + parts[1]; {code} -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira