Reply
New Contributor
Posts: 1
Registered: ‎10-09-2013

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

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

Highlighted
Cloudera Employee
Posts: 26
Registered: ‎08-06-2013

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

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