Hive Related Errors and fixes

1) FAILED: SemanticException [Error 10096]: Dynamic partition strict mode requires at least one static partition column. To turn this off set hive.exec.dynamic.partition.mode=nonstrict
Fix: a) set hive.exec.dynamic.partition.mode=nonstrict;
b) set hive.exec.dynamic.partition=true;

2) FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table.
Fix: deploy latest mysql-jdbs jar

3) 20)for ClassNotFoundException: org.apache.hadoop.hive.jdbc.HiveDriver
add hive-jdbc JAR

4) java.lang.NoClassDefFoundError: org/apache/hadoop/hive/metastore/api/MetaException
add hive-metastore jar
5) java.lang.NoClassDefFoundError: org/apache/thrift/TBase
add libthrift JAR
6) java.lang.NoClassDefFoundError: org/apache/hadoop/hive/service/HiveInterface
add hive-service Jar
7) java.lang.NoClassDefFoundError: com/facebook/fb303/FacebookService$Iface
add libfb Jar
8) java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
add slf4j-api jar and slf4j-log4j
9) java.lang.NoClassDefFoundError: org/apache/log4j/Level
add log4j Jar
10) java.lang.NoClassDefFoundError: org/apache/http/HttpRequestInterceptor
add Httpcore and httpclient jar
11) java.lang.NoClassDefFoundError: org/apache/hadoop/hive/conf/HiveConf$ConfVars
add hive-common jar
12)  java.lang.NoClassDefFoundError: org/apache/hadoop/util/Shell
add hadoop-common jar
13) java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
add commons.logging jar
14) java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
add guava.jar
15) java.lang.NoClassDefFoundError: org/apache/commons/collections/map/UnmodifiableMap
add common collections jar

Comments

Popular posts from this blog

Map Reduce Interview Questions

Sqoop Interview Questions