Reply
Highlighted
Explorer
Posts: 12
Registered: ‎06-14-2018

Failed to become active master org.apache.hadoop.security.AccessControlException: Permission denied:

I cannot start hbase service. I got Permission denied. 

 

Failed to become active master

org.apache.hadoop.security.AccessControlException: Permission denied: user=hbase, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x

        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.checkFsPermission(DefaultAuthorizationProvider.java:279)

        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.check(DefaultAuthorizationProvider.java:260)

        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.check(DefaultAuthorizationProvider.java:240)

        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.checkPermission(DefaultAuthorizationProvider.java:162)

 

......

 

Unhandled exception. Starting shutdown.

org.apache.hadoop.security.AccessControlException: Permission denied: user=hbase, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x

        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.checkFsPermission(DefaultAuthorizationProvider.java:279)

        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.check(DefaultAuthorizationProvider.java:260)

 

......

 

 

Output of ls:

 

sudo -u hdfs hdfs dfs -ls /user

Found 2 items

drwxrwxrwx   - mapred mapred          0 2018-06-25 14:48 /user/history

drwxrwxrwx   - mapred mapred          0 2018-06-25 13:59 /user/spark

 

sudo -u hdfs hdfs dfs -ls /hbase

Found 1 items

drwxr-xr-x   - hdfs hbase          0 2018-06-25 15:06 /hbase/data

 

sudo -u hdfs hdfs dfs -ls /hbase/data/hbase

 

The /hbase/data/hbase is empty.

 

Expert Contributor
Posts: 133
Registered: ‎01-08-2018

Re: Failed to become active master org.apache.hadoop.security.AccessControlException: Permission den

Have you run "Create Root Directory" from HBase's available actions in Cloudera Manager?

This will create the "/hbase" (default value) directory in hdfs that will belong to user hbase and group hbase.

If it is created then check permissions

sudo -u hdfs hdfs dfs -ls /

 

If not, create it (you can do it using Cloudera Manager as mentioned above):

sudo -u hdfs hdfs dfs -mkdir /hbase

sudo -u hdfs hdfs dfs -chown hbase:hbase /hbase

Explorer
Posts: 12
Registered: ‎06-14-2018

Re: Failed to become active master org.apache.hadoop.security.AccessControlException: Permission den

Here are the output:

 

sudo -u hdfs hdfs dfs -ls /

Found 3 items

drwxr-xr-x   - hbase  hbase               0 2018-06-26 11:19 /hbase

drwxrwxrwx   - hdfs   supergroup          0 2018-06-26 11:18 /tmp

drwxrwxr-x   - mapred mapred              0 2018-06-26 11:19 /user

 

I filed another problem. The title is "

Could not find yarn-site.xml, make sure to deploy yarn client in UI". I guess these problems may be related. Can you please take a look?

Announcements