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; |
完。
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。