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:
parent
583c42e602
commit
3baa7430c6
@ -71,6 +71,7 @@ public Set<String> getJars(InitializerContext context,
|
|||||||
if (fromJobConfig.fromJobConfig.uri.startsWith("dataset:hive")) {
|
if (fromJobConfig.fromJobConfig.uri.startsWith("dataset:hive")) {
|
||||||
// @TODO(Abe): Remove a deps that aren't used?
|
// @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.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.apache.hadoop.hive.serde2.SerDe"));
|
||||||
jars.add(ClassUtils.jarForClass("org.kitesdk.data.spi.hive.MetaStoreUtil"));
|
jars.add(ClassUtils.jarForClass("org.kitesdk.data.spi.hive.MetaStoreUtil"));
|
||||||
jars.add(ClassUtils.jarForClass("org.kitesdk.compat.DynConstructors"));
|
jars.add(ClassUtils.jarForClass("org.kitesdk.compat.DynConstructors"));
|
||||||
|
@ -78,6 +78,7 @@ public Set<String> getJars(InitializerContext context,
|
|||||||
if (toJobConfig.toJobConfig.uri.startsWith("dataset:hive")) {
|
if (toJobConfig.toJobConfig.uri.startsWith("dataset:hive")) {
|
||||||
// @TODO(Abe): Remove a deps that aren't used?
|
// @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.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.apache.hadoop.hive.serde2.SerDe"));
|
||||||
jars.add(ClassUtils.jarForClass("org.kitesdk.data.spi.hive.MetaStoreUtil"));
|
jars.add(ClassUtils.jarForClass("org.kitesdk.data.spi.hive.MetaStoreUtil"));
|
||||||
jars.add(ClassUtils.jarForClass("org.kitesdk.compat.DynConstructors"));
|
jars.add(ClassUtils.jarForClass("org.kitesdk.compat.DynConstructors"));
|
||||||
|
Loading…
Reference in New Issue
Block a user