Sqoop Import Fails with "ERROR hive.HiveConfig: Could not load org.apache.hadoop.hive.conf.HiveConf" after BDA Upgrade from 4.2 To V4.3 (Doc ID 2091267.1)

Last updated on APRIL 07, 2016

Applies to:

Big Data Appliance Integrated Software - Version 4.3.0 and later
Linux x86-64

Symptoms

After BDA upgrade from 4.2 to 4.3, the Sqoop import fails with:
 

ERROR hive.HiveConfig: Could not load org.apache.hadoop.hive.conf.HiveConf. Make sure HIVE_CONF_DIR is set correctly.
 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
java.lang.NullPointerException
  at org.apache.sqoop.hive.HiveConfig.addHiveConfigs(HiveConfig.java:61)
  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:514)
  at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
  at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
  at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
  at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
  at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
  at org.apache.sqoop.Sqoop.main(Sqoop.java:236)


Setting the HIVE_CONF_DIR environment variable has no effect.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms