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

Issue:

Trying to run "msck repair table <tablename>" gives the below error

Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. null

Resolution:

The above error occurs when hive.mv.files.thread=0, increasing the value of the parameter to 15 fixes the issue

This is a known bug

21,831 Views
Comments
avatar

Would you mind adding Apache Jira link?

avatar
New Member

That bug link won't work unless one is a HW employee or contractor.

The real issues linked to this internal BUG are the following Apache issues:

https://issues.apache.org/jira/browse/HIVE-15803

https://issues.apache.org/jira/browse/HIVE-15879

https://issues.apache.org/jira/browse/HIVE-16014

https://issues.apache.org/jira/browse/HIVE-16086

Hope that helps!

avatar
Not applicable

Workaround if you have spark-sql: spark-sql -e "msck repair table <tablename>".

it works for me all the time.

hope this helps!

avatar

Using the console this worked:

user@sandbox:~$ hive --hiveconf hive.msck.path.validation=ignore
hive> use mydatabase;
hive> msck repair table mytable;

Version history
Last update:
‎03-31-2017 10:20 PM
Updated by:
Contributors