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

Haohui Mai commented on HDFS-5975:
----------------------------------

I think this feature has good practical impact, since the operator rarely needs 
to do a full lsr starting from the root directory. LsrPBImage should output 
on-demand.

My suggestion is to push this idea one step further -- is it possible to create 
a tool which takes the fsimage, and exposes the read-only version of WebHDFS 
API? You can imagine the tool looks very similar to jhat, except that it 
exposes the WebHDFS API.

That way we can allow the operator to use the existing command-line tool, or 
even the web UI to debug the fsimage. It also allows the operator to 
interactively browsing the file system, figuring out what goes wrong.



> Create an option to specify a file path for OfflineImageViewer
> --------------------------------------------------------------
>
>                 Key: HDFS-5975
>                 URL: https://issues.apache.org/jira/browse/HDFS-5975
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: tools
>            Reporter: Akira AJISAKA
>            Assignee: Akira AJISAKA
>            Priority: Minor
>
> The output of OfflineImageViewer becomes quite large if an input fsimage is 
> large. I propose '-filePath' option to make the output smaller.
> The below command will output the {{ls -R}} of {{/user/root}}.
> {code}
> hdfs oiv -i input -o output -p Ls -filePath /user/root
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to