Duplicate entry errors in Hue Query Processor
Learn how to address duplicate entry errors in the Query Processor that occur due to timezone mismatches.
Condition
When you use a MySQL database for the Query Processor, the service might fail or stop
processing events. You might see a
SQLIntegrityConstraintViolationException error in the logs, and
query entries do not appear in the Hive Queries tab of the
Job browser.
Cause
This issue occurs because of a timezone mismatch between the Java Virtual Machine (JVM) and the MySQL server. If these timezones are not synchronized, the system incorrectly reads date values from the database. This mismatch causes the file-scanning pipeline to attempt to insert duplicate records into the file_status table for data that already exists.
