Problem description
Using sqoop to import data from Mysql to hive, an error is reported: could not load org.apache.hadoop.hive.conf.hiveconf. Make sure hive_CONF_DIR is set correctly
analysis
The hiveconf. Class class class exists
measures
Modify $sqoop_HOME/conf/sqoop-env.sh
# Add the content below
export HADOOP_CLASSPATH=/opt/software/hadoop-3.1.3/lib/*:/opt/software/hive-3.1.2/lib/*
Outcome:
Similar Posts:
- Java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument
- Hive1.1.0 startup error reporting Missing Hive Execution Jar: lib/hive-exec-*.jar
- “Execution error, return code 1 from org. Apache. Hadoop. Hive. QL. Exec. Movetask” error occurred when hive imported data locally
- [Solved] Sqoop error: Could not load db driver class: com.mysql.jdbc.Driver
- [Solved] hive service hiveserver2 Error: GC overhead limit exceeded
- An error is reported when sqoop imports data into MySQL database: error tool. Exporttool: error during export: export job failed!
- [Solved] SparkSQL Error: org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism
- Hive Start Error: Exception in thread “main” java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgumen
- Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- Hive initialization metadata error [How to Solve]