我正在尝试导入数据(具有两列 int 和 string 的简单文件),表格看起来:
hive> describe test;
id int
name string
当我尝试导入时:
hive> load data inpath '/user/test.txt' overwrite into table test;
Loading data to table default.test
rmr: org.apache.hadoop.security.AccessControlException: Permission denied: user=hadoop, access=ALL, inode="/user/hive/warehouse/test":hive:hadoop:drwxrwxr-x
Failed with exception org.apache.hadoop.security.AccessControlException: Permission denied: user=hadoop, access=WRITE, inode="/user/hive/warehouse/test":hive:hadoop:drwxrwxr-x
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask
看起来用户 hadoop 拥有所有权限,但仍然无法加载数据,但是我能够创建表。怎么了?