You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Mathias Herberts (JIRA)" <ji...@apache.org> on 2010/11/16 13:49:13 UTC

[jira] Created: (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
-------------------------------------------------------------------------------------

                 Key: HBASE-3238
                 URL: https://issues.apache.org/jira/browse/HBASE-3238
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.90.0
            Reporter: Mathias Herberts
            Priority: Blocker


Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.

In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.

ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Mathias Herberts (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011420#comment-13011420 ] 

Mathias Herberts commented on HBASE-3238:
-----------------------------------------

Catching the noauth would do the trick I guess, but what gain compared with the exist call when the znode has already been created?

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Newman updated HBASE-3238:
-------------------------------

    Status: Patch Available  (was: Open)

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Newman reassigned HBASE-3238:
----------------------------------

    Assignee: Alex Newman

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016231#comment-13016231 ] 

Hudson commented on HBASE-3238:
-------------------------------

Integrated in HBase-TRUNK #1831 (See [https://hudson.apache.org/hudson/job/HBase-TRUNK/1831/])
    

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>             Fix For: 0.92.0
>
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238-v3.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014747#comment-13014747 ] 

stack commented on HBASE-3238:
------------------------------

+1 on patch.  Mathias, what do you think?

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238-v3.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Newman updated HBASE-3238:
-------------------------------

    Attachment: HBASE-3238.patch

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011297#comment-13011297 ] 

Alex Newman commented on HBASE-3238:
------------------------------------

> Is there a create that works even if node already exists?
I talked to henry today, we either need to catch it(Which will catch a larger set of acl exceptions), or check exists first (which may have performance implications). Alternatively we can make our API more fine grained and replace all the create /home.dir calls with this new fine grained call. He suggested we catch this exception. Also do we think it should be createOrFailSilent not and fail silent?

> What is this '+ * @param str String to amend. -1'
Me being retarded, it's now removed.

> When you say above that it limits to write under /hbase, you don't mean exactly /hbase, you mean whatever is configured as cluster home in zk?
Correct I clarified the comment.



> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-3238:
-------------------------

       Resolution: Fixed
    Fix Version/s: 0.92.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Applied to TRUNK.  Thanks for the patch Alex (and for the review Mathias -- I added in your suggested comment change on commit).

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>             Fix For: 0.92.0
>
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238-v3.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Mathias Herberts (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014966#comment-13014966 ] 

Mathias Herberts commented on HBASE-3238:
-----------------------------------------

LGTM, maybe the comment '// If we failed to create the file rethrow.' could be changed to '// If we failed to create the file and it does not already exist, rethrow.'

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238-v3.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Newman updated HBASE-3238:
-------------------------------

    Attachment: HBASE-3238-v3.patch

This one only checks for existence in the exception case.

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238-v3.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011090#comment-13011090 ] 

stack commented on HBASE-3238:
------------------------------

Hey honey.  Is there a create that works even if node already exists?

What is this '+   * @param str String to amend.   -1'

When you say above that it limits to write under /hbase, you don't mean exactly /hbase, you mean whatever is configured as cluster home in zk?

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Newman updated HBASE-3238:
-------------------------------

    Attachment: HBASE-3238-v2.patch

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011025#comment-13011025 ] 

Alex Newman commented on HBASE-3238:
------------------------------------

Ok I think I got what he was saying. Two things. Mathias should confirm I fixed what he saw broken. Also someone who is a commiter should decide if this is something we really want, it limits hbase to always write under /hbase

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011436#comment-13011436 ] 

Alex Newman commented on HBASE-3238:
------------------------------------

I think the idea is to only call exist if we need to.

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011398#comment-13011398 ] 

Alex Newman commented on HBASE-3238:
------------------------------------

I just realized what about we just catch the noauth exception, and throw another error if the node doesn't exist. This would save us an exist in the normal case?

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1, HBASE-3238-v2.patch, HBASE-3238.patch
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011015#comment-13011015 ] 

Alex Newman commented on HBASE-3238:
------------------------------------

So I wrote a test to simulate this, although the suggested fix doesn't seem to work unless I am misunderstanding it. I'll upload a patch and maybe you can tell me what I'm doing wrong.



> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3238) HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

Posted by "Alex Newman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Newman updated HBASE-3238:
-------------------------------

    Attachment: 1

> HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-3238
>                 URL: https://issues.apache.org/jira/browse/HBASE-3238
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.0
>            Reporter: Mathias Herberts
>            Assignee: Alex Newman
>            Priority: Blocker
>         Attachments: 1
>
>
> Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.
> In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.
> ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira