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?
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.