SQLException Is Reported During Hive Data Synchronization
Question
The following error is reported during Hive data synchronization:
Caused by: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. The following columns have types incompatible with the existing columns in their respective positions : __col1,__col2
Answer
This error usually occurs when you try to add a new column to an existing Hive table using the HiveSyncTool.java class. Databases typically prohibit changing a column to a lower-order data type or any type that conflicts with existing or future data. To solve this problem, set hive.metastore.disallow.in compatible.col.type.changes to false.
What is your overall rating for this page?
Thank 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