[ 
https://issues.apache.org/jira/browse/HBASE-9434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13758194#comment-13758194
 ] 

Matteo Bertozzi commented on HBASE-9434:
----------------------------------------

+1 for me

Is there a better way then doing lastIndexOf(separator)? I was thinking at new 
Path().parent() but you end up with .parent().parent()... 5 times so it will 
not be nicer. (anyway, for me you can commit this patch with the lastIndexOf)
{code}
for (int i = 0; index > 0 && i < 5; i++) {
   index = pathStr.lastIndexOf(Path.SEPARATOR_CHAR, index - 1);
{code}
                
> hbck tries to sideline file to root dir
> ---------------------------------------
>
>                 Key: HBASE-9434
>                 URL: https://issues.apache.org/jira/browse/HBASE-9434
>             Project: HBase
>          Issue Type: Bug
>          Components: hbck
>    Affects Versions: 0.95.2
>            Reporter: Jimmy Xiang
>            Assignee: Jimmy Xiang
>            Priority: Minor
>         Attachments: trunk-9434.patch
>
>
> It seems not to be like this before. Anyway, we should fix it.
> {noformat}
> 13/09/04 09:23:31 INFO util.HBaseFsck: Trying to sildeline reference 
> filehdfs://test-1.cloud.cloudera.com:8020/hbase/data/default/usertable/5dbfd775b15a383caab6131b992e1d37/f/864fa006a4814f1f9b42e2bd34ea6543.6bbe5472a333772ec4b2c5c87de503e0
>  to 
> hdfs://test-1.cloud.cloudera.com:8020/864fa006a4814f1f9b42e2bd34ea6543.6bbe5472a333772ec4b2c5c87de503e0
> Exception in thread "main" org.apache.hadoop.security.AccessControlException: 
> Permission denied: user=hbase, access=WRITE, 
> inode="/":hdfs:supergroup:drwxr-xr-x
>         at 
> org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:234)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to