我正在获取hive中的权限错误.
我正在使用IBM cloud - my.imdemocloud.com
hive> create table a(key INT);
FAILED: Error in metadata: MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException org.apache.hadoop.security.AccessControlException: Permission denied: user=nehpraka, access=WRITE, inode="warehouse":biadmin:biadmin:rwxrwxr-x)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
我在哪里为用户提供了所有角色.
hive> SHOW GRANT USER nehpraka on DATABASE default;
OK
database default
principalName nehpraka
principalType USER
privilege Create
grantTime Wed Apr 16 14:17:51 EDT 2014
grantor nehpraka
Time taken: 0.051 seconds
请帮我解决这个问题.
谢谢和Ragards
我得到了解决方案.
我正在使用IBM Big Insight云,我们可以通过这种方式创建数据库.
create database DataBaseName location 'hdfs://master-1-internal.imdemocloud.com:9000/user/';
谢谢大家的帮助.