分享

hive 表drop 失败

sunt99 发表于 2017-1-5 13:06:07 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 6995
建表语句:
create EXTERNAL table dml.user_perspective                              
(                                          
userid      string comment '用户id',
touserid      string comment '老师id',
article         string comment  '文章列表',
updatetime        timestamp comment '更新时间'                                                      
)                                                               
COMMENT 'user_perspective'
-- partitioned by(day     string     comment "")
ROW FORMAT DELIMITED fields terminated by '\001'
STORED AS TEXTFILE
location '/hive/dml/user_perspective';


因为location 指定错了,想删了重新建,结果报错如下
hive> drop table dml.user_perspective;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Table metadata not deleted since hdfs://nameservice1/hive/dml is not writable by root)

大家有什么建议吗?谢谢!

已有(1)人评论

跳转到指定楼层
fylanyu 发表于 2017-1-5 14:01:03


应该是bug,楼主可以打下补丁
hive补丁.rar (2.19 KB, 下载次数: 3)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条