建表语句:
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)
大家有什么建议吗?谢谢!
|
|