Support Questions
Find answers, ask questions, and share your expertise

How do I find error logs in Hive?

New Contributor

Suppose I have 10 statements in a HiveQL script and the 5th statement has got some error. So, I want the error to be logged in a log file and the execution should terminate without moving on to the 6th statement. How do I achieve it in Hive?

1 REPLY 1

Explorer

I think by default "hive -f <filename>" fails on first error and won't continue. Errors should end up on stderr so you can redirect that.