I am facing Permission denied error while creating HIVE table . Below is the detail description what I did .
I have 2 node clusture running on Ubuntu12.04 . I have installed CDH4.7.0 and they are up and running . I have installed HIVE by issuing below command . Apart from this command I did nothing for configuration as I have no idea what to do after installation:
sudo apt-get install hive
After installation I started HIVE . But when I am trying to create table I am getting below exception . I am not sure what permission I need to provide to which folder or user .
FAILED: Error in metadata: MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException Permission denied: user=root, access=WRITE, inode="/user":hdfs:hadoop:drwxr-xr-x
I am running HIVE query under root user .
This Error is related to HDFS;you can solve this problem temporary by disabling the dfs permission.By adding below property code to hdfs-site.xml
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
if you want more options : Permission denied at hdfs
或者,您可以使用它来解决它:
hadoop fs -chmod -R 777 /user/hive/warehouse/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.