0

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 .

Makyen
  • 31,849
  • 12
  • 86
  • 121
Deb
  • 391
  • 2
  • 20

2 Answers2

0

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

Community
  • 1
  • 1
0

Alternatively you can use this to resolve it :

hadoop fs -chmod -R 777 /user/hive/warehouse/
Devi Prasad
  • 78
  • 2
  • 13