Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

how to achieve hql error handling

avatar

I have multiple queries in a hql file (say 10, every query ending with 😉 which I am running from a shell script.

When a query in between fails (say query #5), the queries after 5 do not execute, and the hive job is completed.

How can I do error handling to make sure that queries from 6 to 10 run even though query 5 fails?

1 ACCEPTED SOLUTION

avatar

If any one is interested, this can be achieved by setting hive.cli.errors.ignore=true

hive --hiveconf hive.cli.errors.ignore=true -f myscript.sql 

View solution in original post

1 REPLY 1

avatar

If any one is interested, this can be achieved by setting hive.cli.errors.ignore=true

hive --hiveconf hive.cli.errors.ignore=true -f myscript.sql