override SemanticException [Error 10001]

假装没事ソ 提交于 2019-12-02 12:19:47

问题


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 hive. so help me out to override or skip those queries whose table is not present in hive


回答1:


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



来源:https://stackoverflow.com/questions/48140266/override-semanticexception-error-10001

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!