欢迎投稿

今日深度:

Hive删库,加cascade可强

Hive删库,加cascade可强


drop database tpch_textfile;

报错如下:

Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidOperationException(message:Database tpch_textfile is not empty. One or more tables exist.)

Hive不能删除含有表的数据库,要先将数据库中的表清空才能删。加cascade可强制删除。

drop database tpch_textfile cascade;

完。

www.htsjk.Com true http://www.htsjk.com/hive/45693.html NewsArticle Hive删库,加cascade可强 drop database tpch_textfile; 报错如下 Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidOperationException(message:Database tpch_te...
评论暂时关闭