[
https://issues.apache.org/jira/browse/HDFS-5978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13906260#comment-13906260
]
Haohui Mai commented on HDFS-5978:
----------------------------------
As a first step, one can take the current code of LsrPBImage, and then create a
Netty-based HTTP server that implements the {{LISTSTATUS}} in WebHDFS.
I suggest not using jetty 6 + jersey (which are used in the NN to implement
webhdfs) in this tool, because they'll bring in quite a few external
dependency, making the tool much harder to deploy.
> Create a tool to take fsimage and expose read-only WebHDFS API
> --------------------------------------------------------------
>
> Key: HDFS-5978
> URL: https://issues.apache.org/jira/browse/HDFS-5978
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: tools
> Reporter: Akira AJISAKA
>
> Suggested in HDFS-5975.
> Add an option to exposes the read-only version of WebHDFS API for
> OfflineImageViewer. You can imagine it looks very similar to jhat.
> 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.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)