[
https://issues.apache.org/jira/browse/HDDS-315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16608762#comment-16608762
]
Elek, Marton commented on HDDS-315:
-----------------------------------
Sure. I agree. We have much bigger problem as of now.
For example I saw a 'keyName = path.getName(2).toString();' in other places,
too. For example deleteKey also uses it.
IMHO it would be great to create a Generic OzoneURL utility which could parse
the url in a common way.
Something like this:
url = OzoneURL.parseFrom(String uri)
url.isVolumeAddress();
url.getVolume();
url.getKey()
url.getBucket()
url.isRest()
url.getScmAddress() I
> 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,
> HDDS-315.003.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: [email protected]
For additional commands, e-mail: [email protected]