hive > create table stuinfos(sid int, name string) row format delimited fields terminated by '\t';
报错:FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. AlreadyExistsException(message:Table stuinfos already exists)

表明这个表已经创建,我尝试删除hdfs系统下的/user/hive/warehouse/stuinfos ,使用目录dfs -rm -r -f stuinfos 后仍然不行,最后发现

在hive命令行输入

drop table stuinfos;

成功解决!

 

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐