override SemanticException [Error 10001]

前端 未结 1 1295
暗喜
暗喜 2021-01-24 14:05

I want to alter 1000s table in hive database, but some of their tables exits some doesn\'t. As I execute that .sql file, as soon as it found table not present, it exits from hiv

1条回答
  •  不思量自难忘°
    2021-01-24 15:01

    Try this configuration parameter:

    set hive.cli.errors.ignore=true;
    

    After setting it to 'true', all commands in the script are executed, no matter how many failed.

    See here: https://issues.apache.org/jira/browse/HIVE-1847

    0 讨论(0)
提交回复
热议问题