Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

hive 0.11 vs 2.x.x-mr1-cdh4.x.x errors

hive 0.11 vs 2.x.x-mr1-cdh4.x.x errors

New Contributor

hive 0.11 has errors while initialising due to this code : ShimLoader.java -> 

public static String getMajorVersion() {
String vers = VersionInfo.getVersion();
System.err.println("!!!!" + vers + "!!!!!");

String[] parts = vers.split("\\.");
if (parts.length < 2) {
throw new RuntimeException("Illegal Hadoop Version: " + vers +
" (expected A.B.* format)");
}

// Special handling for Hadoop 1.x and 2.x
switch (Integer.parseInt(parts[0])) {
case 0:
break;
case 1:
return "0.20S";
case 2:
return "0.23";

 

...

 

we take case 2, but we need case 0, thus we gets Shim class 23, that could not be found in mr1

1 REPLY 1

Re: hive 0.11 vs 2.x.x-mr1-cdh4.x.x errors

Contributor

Hive 0.11 is not supported with CDH4.  Hive 0.11 will be available in CDH5b1.