- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Failed to become active master org.apache.hadoop.security.AccessControlException: Permission denied:
- Labels:
-
Apache HBase
Created on ‎06-25-2018 03:20 PM - edited ‎09-16-2022 06:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎06-26-2018 06:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎06-26-2018 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
