FAQ
All,
Used Cloudera Manager Free 4.1.0
*first time install*: distributed (3 machines)
*hbase Master won't start*


I get the following error in the log:
*Source*: org.apache.hadoop.hbase.master.HMaster
*Message*: org.apache.hadoop.security.AccessControlException: Permission
denied: user=hbase, access=WRITE, inode="/":hdfs:supergroup:drwxrwxr-x

following generates same error:
[linux@zip11 var]$ sudo -u hbase hadoop fs -mkdir /tmp
mkdir: Permission denied: user=hbase, access=WRITE,
inode="/":hdfs:supergroup:drwxrwxr-x
[linux@zip11 var]$ sudo hadoop fs -mkdir /tmp
mkdir: Permission denied: user=root, access=WRITE,
inode="/":hdfs:supergroup:drwxrwxr-x

no luck.

others have reported this type of problem. It seems that:
-it's a permission issue (obvious)
-in hdfs
-above 2 commands accurately repro the issue.

Any ideas appreciated.
thanks
John

Search Discussions

  • John Meza at Nov 20, 2012 at 1:32 am
    As soon as I posted the question, I happened on the solution. I need to
    spend more time on the exact reason why this fixed it.
    Below are the commands. I suspect that for some reason there weren't any
    directories nor permissions with hdfs.

    The hdfs user created a /user directory. and provided ownership.

    [linux@zip11 var]$ sudo -u hdfs hadoop fs -mkdir /user/root
    [linux@zip11 var]$ sudo -u hdfs hadoop fs -chown root:root /user/root

    So this is the test. seems to work for user hbase.
    [linux@zip11 var]$ sudo -u hbase hadoop fs -ls /
    Found 1 items
    drwxr-xr-x - hdfs supergroup 0 2012-11-19 16:15 /user

    Now, provide correct access privs for users
    [linux@zip11 var]$ sudo -u hdfs hadoop fs -chmod -R 777 /

    Successfully started hbase master.
    Look inside directories, seems good.
    linux@zip11 ~]$ sudo -u hdfs hadoop fs -ls /
    Found 3 items
    drwxr-xr-x - hbase supergroup 0 2012-11-19 16:21 /hbase
    drwxr-xr-x - mapred supergroup 0 2012-11-19 16:55 /tmp
    drwxrwxrwx - hdfs supergroup 0 2012-11-19 16:15 /user

    [linux@zip11 ~]$ sudo -u hdfs hadoop fs -ls /hbase
    Found 6 items
    drwxr-xr-x - hbase supergroup 0 2012-11-19 16:21 /hbase/-ROOT-
    drwxr-xr-x - hbase supergroup 0 2012-11-19 16:21 /hbase/.META.
    drwxr-xr-x - hbase supergroup 0 2012-11-19 16:21 /hbase/.logs
    drwxr-xr-x - hbase supergroup 0 2012-11-19 16:21 /hbase/.oldlogs
    -rw-r--r-- 3 hbase supergroup 38 2012-11-19 16:21 /hbase/hbase.id
    -rw-r--r-- 3 hbase supergroup 3 2012-11-19 16:21 /hbase/hbase.version

    On to first tests of cluster.
  • Harsh J at Nov 20, 2012 at 9:30 am
    Hey John,

    Usually CM should do it on installing and starting HBase the first
    time (in case the start procedure was not skipped over), but there's
    an option under Home -> hbase1 -> Actions -> "Create /hbase root dir…"
    that you can run to create the HBase root directory automatically if
    its not already created, instead of having to run the commands.
    On Tue, Nov 20, 2012 at 5:31 AM, John Meza wrote:
    All,
    Used Cloudera Manager Free 4.1.0
    first time install: distributed (3 machines)
    hbase Master won't start


    I get the following error in the log:
    Source: org.apache.hadoop.hbase.master.HMaster
    Message: org.apache.hadoop.security.AccessControlException: Permission
    denied: user=hbase, access=WRITE, inode="/":hdfs:supergroup:drwxrwxr-x

    following generates same error:
    [linux@zip11 var]$ sudo -u hbase hadoop fs -mkdir /tmp
    mkdir: Permission denied: user=hbase, access=WRITE,
    inode="/":hdfs:supergroup:drwxrwxr-x
    [linux@zip11 var]$ sudo hadoop fs -mkdir /tmp
    mkdir: Permission denied: user=root, access=WRITE,
    inode="/":hdfs:supergroup:drwxrwxr-x

    no luck.

    others have reported this type of problem. It seems that:
    -it's a permission issue (obvious)
    -in hdfs
    -above 2 commands accurately repro the issue.

    Any ideas appreciated.
    thanks
    John


    --
    Harsh J

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedNov 20, '12 at 12:01a
activeNov 20, '12 at 9:30a
posts3
users2
websitecloudera.com
irc#hadoop

2 users in discussion

John Meza: 2 posts Harsh J: 1 post

People

Translate

site design / logo © 2022 Grokbase