5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 03:59:18 +08:00

fix the problem of NoClassDefFoundError of HiveOutputFormat when import or export to hive through kite connector

This commit is contained in:
slee 2015-08-28 15:44:50 +08:00
parent 583c42e602
commit 3baa7430c6
2 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ public Set<String> getJars(InitializerContext context,
if (fromJobConfig.fromJobConfig.uri.startsWith("dataset:hive")) {
// @TODO(Abe): Remove a deps that aren't used?
jars.add(ClassUtils.jarForClass("org.apache.hadoop.hive.conf.HiveConf"));
jars.add(ClassUtils.jarForClass("org.apache.hadoop.hive.ql.io.HiveOutputFormat"));
jars.add(ClassUtils.jarForClass("org.apache.hadoop.hive.serde2.SerDe"));
jars.add(ClassUtils.jarForClass("org.kitesdk.data.spi.hive.MetaStoreUtil"));
jars.add(ClassUtils.jarForClass("org.kitesdk.compat.DynConstructors"));

View File

@ -78,6 +78,7 @@ public Set<String> getJars(InitializerContext context,
if (toJobConfig.toJobConfig.uri.startsWith("dataset:hive")) {
// @TODO(Abe): Remove a deps that aren't used?
jars.add(ClassUtils.jarForClass("org.apache.hadoop.hive.conf.HiveConf"));
jars.add(ClassUtils.jarForClass("org.apache.hadoop.hive.ql.io.HiveOutputFormat"));
jars.add(ClassUtils.jarForClass("org.apache.hadoop.hive.serde2.SerDe"));
jars.add(ClassUtils.jarForClass("org.kitesdk.data.spi.hive.MetaStoreUtil"));
jars.add(ClassUtils.jarForClass("org.kitesdk.compat.DynConstructors"));