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.
- 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
- Run the command again.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot