21/05/06 13:30:53 ERROR tool.ImportTool: Import failed: java.io.IOException: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
at org.apache.sqoop.hive.HiveConfig.getHiveConf(HiveConfig.java:50)
at org.apache.sqoop.hive.HiveImport.getHiveArgs(HiveImport.java:392)
at org.apache.sqoop.hive.HiveImport.executeExternalHiveScript(HiveImport.java:379)
at org.apache.sqoop.hive.HiveImport.executeScript(HiveImport.java:337)
at org.apache.sqoop.hive.HiveImport.importTable(HiveImport.java:241)
at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:537)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:628)
at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:243)
at org.apache.sqoop.Sqoop.main(Sqoop.java:252)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.apache.sqoop.hive.HiveConfig.getHiveConf(HiveConfig.java:44)
... 12 more
Reason: the hive-common-2.3.3.jar package is missing. Just copy it from hive’s lib directory to sqoop’s lib directory.
Read More:
- Using sqoop to export data from hive to MySQL
- “Hive metadata problem” hive.metastore.HiveMetaException : Failed to get schema version.
- Spoop export hive to MySQL
- Step on the pit — error reported by sqoop tool.ExportTool : Error during export
- The problem of error reporting in Ranger connection hive is solved
- (error when importing database): MySQL 2006-mysql server has gone away
- When executing hive – f script com.mysql.jdbc . exceptions.jdbc4 .CommunicationsException: Communications link failure
- Sqoop import error communications link failure
- java.lang.ClassNotFoundException : com.mysql.jdbc . driver project cannot connect to database, exception, lack of MySQL driver
- hive is not allowed to impersonate anonymous
- Error while instantiating ‘org.apache.spark.sql.hive.HiveExternalCatalog’:
- An error was reported in the process of importing the table from mysql5.7: [err] 1067 – invalid default value for ‘***β
- Hive: How to Solve dearby database initialization error
- Run spark to report error while identifying ‘ org.apache.spark . sql.hive.HiveSessionState ‘
- FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(me
- Java connection zookeeper high availability hive error
- The difference between hive and relational database
- Failed: execution error, return code 1 from org.apache.hadoop . hive.ql.exec .DDLTask…
- Exception on start hive: caused by: java.net.noroutetohostexception: no route to host
- [Solved] hiveonspark:Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask