Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using Sqoop/ Sqoop FAQs/ What Should I Do If An Error Is Reported When Data Is Imported to a Hive Table?
Updated on 2024-12-13 GMT+08:00

What Should I Do If An Error Is Reported When Data Is Imported to a Hive Table?

Question

The following error log is printed when Sqoop imports data to the Hive table.

Check the appattempt logs for the Yarn application. The syslog includes task logs as follows:

Answer

The log framework of Hive conflicts with that of Hadoop. Delete log4j-*-api-*.jar from the Hive directory in the current Sqoop client directory.

  1. Log in to the client node. For example, if the client directory is /opt/client, run the following command:

    rm -rf /opt/client/Hive/Beeline/lib/log4j-*-api-*.jar

  2. Run the command again.