Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
Expert Contributor

Problem description :

When upgrading to HDP 2.5.3 , some queries to Hive were failing Especially when executing Insert Overwrite queries. with the following error :

ERROR : Failed with exception java.util.ConcurrentModificationException org.apache.hadoop.hive.ql.metadata.HiveException: java.util.ConcurrentModificationException at org.apache.hadoop.hive.ql.metadata.Hive.moveFile(Hive.java:2883) at ..... etc

Caused by: java.util.ConcurrentModificationException

Workaround:

"Add SORT BY 0" to your query.

INSERT OVERWRITE TABLE AAA SELECT A , B , C FROM BBBB SORT BY 0 ;

More investigations to follow up ...

2,359 Views
0 Kudos
Comments

This is a KB at most. It is not even complete. Just read "More investigations to follow up ..."

Version history
Last update:
‎01-20-2017 04:06 PM
Updated by:
Contributors