hive创建表报错FAILED: SemanticException No valid privileges
作者:互联网
操作:
create external table hive_data( id int, name string )row format delimited fields terminated by ',' stored as textfile location '/test/hivedata';
报错信息:
Error: Error while compiling statement: FAILED: SemanticException No valid privileges
User hive does not have privileges for CREATETABLE
The required privileges: Server=server1->URI=hdfs://nameservice1/test/hivedata->action=*->grantOption=false; (state=42000,code=40000)
原因:
hive用户对应的角色没有此目录权限
解决方式:
赋予权限
标签:hivedata,No,privileges,hive,valid,test,表报 来源: https://www.cnblogs.com/chong-zuo3322/p/16546457.html