hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dinesh Chitlangia (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDDS-315) ozoneShell infoKey does not work for directories created as key and throws 'KEY_NOT_FOUND' error
Date Tue, 04 Sep 2018 03:12:00 GMT

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

Dinesh Chitlangia commented on HDDS-315:
----------------------------------------

[~msingh] Thanks for your review comments. As discussed, we agreed that we need to investigate
and find out where the trailing / is getting dropped so we can address the problem at source
and fix it instead of fiddling with it in KeyManagerImpl#lookupKey. I will get back with more
details and possibly a patch soon.

> ozoneShell infoKey does not work for directories created as key and throws 'KEY_NOT_FOUND'
error
> ------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-315
>                 URL: https://issues.apache.org/jira/browse/HDDS-315
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Nilotpal Nandi
>            Assignee: Dinesh Chitlangia
>            Priority: Major
>             Fix For: 0.2.1
>
>         Attachments: HDDS-315.001.patch, HDDS-315.002.patch
>
>
> infoKey for directories created using ozoneFs does not work and throws 'KEY_NOT_FOUND'
error. However, it shows up in the 'listKey' command.
> Here in this example, 'dir1' was created using ozoneFS , infoKey for the directory throws
error.
>  
>  
> {noformat}
> hadoop@08315aa4b367:~/bin./ozone oz -infoKey /root-volume/root-bucket/dir1
> 2018-08-02 11:34:06 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for
your platform... using builtin-java classes where applicable
> Command Failed : Lookup key failed, error:KEY_NOT_FOUND
> hadoop@08315aa4b367:~/bin$ ./ozone oz -infoKey /root-volume/root-bucket/dir1/
> 2018-08-02 11:34:16 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for
your platform... using builtin-java classes where applicable
> Command Failed : Lookup key failed, error:KEY_NOT_FOUND
> hadoop@08315aa4b367:~/bin$ ./ozone oz -listKey /root-volume/root-bucket/
> 2018-08-02 11:34:21 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for
your platform... using builtin-java classes where applicable
> [ {
>  "version" : 0,
>  "md5hash" : null,
>  "createdOn" : "Wed, 07 May +50555 12:44:16 GMT",
>  "modifiedOn" : "Wed, 07 May +50555 12:44:30 GMT",
>  "size" : 0,
>  "keyName" : "dir1/"
> }, {
>  "version" : 0,
>  "md5hash" : null,
>  "createdOn" : "Wed, 07 May +50555 14:14:06 GMT",
>  "modifiedOn" : "Wed, 07 May +50555 14:14:19 GMT",
>  "size" : 0,
>  "keyName" : "dir2/"
> }, {
>  "version" : 0,
>  "md5hash" : null,
>  "createdOn" : "Thu, 08 May +50555 21:40:55 GMT",
>  "modifiedOn" : "Thu, 08 May +50555 21:40:59 GMT",
>  "size" : 0,
>  "keyName" : "dir2/b1/"{noformat}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message