输入banner图图片脚本导航/分类

Hive_删除数据库

10072]: Database does not exist: db_hive hive> drop database if exists db_hive2;

3.如果数据库不为空,可以采用cascade命令,强制删除

hive> drop database db_hive;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidOperationException(message:Database db_hive is not empty. One or more tables exist.)
hive> drop database db_hive cascade;

 

Hive_删除数据库

标签:fail   tables   turn   val   class   mes   数据库   apache   style