[ 
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

Reply via email to