You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Haohui Mai (JIRA)" <ji...@apache.org> on 2014/11/24 20:10:13 UTC

[jira] [Resolved] (HDFS-7428) Include path in the XML output of oiv

     [ https://issues.apache.org/jira/browse/HDFS-7428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Haohui Mai resolved HDFS-7428.
------------------------------
    Resolution: Invalid

The format of XML depends on the internal implementation details of how fsimage is implemented. In the current PB-based fsimage, deriving full path requires more than O(1) memory thus it is unlikely to have full path in the XML.

Alternatively, you can run WebImageViewer to access the fsimage through the webhdfs interface, which can give you full path.

> Include path in the XML output of oiv
> -------------------------------------
>
>                 Key: HDFS-7428
>                 URL: https://issues.apache.org/jira/browse/HDFS-7428
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: tools
>    Affects Versions: 2.5.1
>            Reporter: Gautam Gopalakrishnan
>            Priority: Minor
>
> When generating the XML output using {noformat}hadoop oiv -p XML{noformat} the path of a file is not printed, just the file name. While the complete path can be derived by parsing INodeDirectorySection and INodeSection and their children, it would be convenient to have the "absolute path" present directly like {noformat}INodeSection->inode->path{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)