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

Trevor Lorimer commented on HADOOP-9562:
----------------------------------------

Hi, just to clarify what I was proposing.
All I intend to do is simply serve up all the data currently displayed on the 
dfshealth jsp page, using only REST GETs, providing both XML and JSON 
responses. 
This stems from needing to present the data on a new UI from a different server.

This would be following the same rationale behind the REST APIs of Resource 
Manager, Node Manager, Application Manager and History Server 
http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html

An example REST GET from http://localhost:50070/hdfs/v1/header would return:

header: {
role: "NameNode"
state: "active"
hostAndPort: "localhost:8020"
securityEnabled: false
}

this would correspond to "NameNode 'localhost:8020' (active)" displayed on the 
dfshealth jsp page.


                
> Create REST interface for HDFS health data
> ------------------------------------------
>
>                 Key: HADOOP-9562
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9562
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 2.0.4-alpha
>            Reporter: Trevor Lorimer
>            Priority: Minor
>
> The HDFS health screen (dfshealth.jsp) displays basic Version, Security and 
> Health information concerning the NameNode, currently this information is 
> accessible from classes in the org.apache.hadoop,hdfs.server.namenode package 
> and cannot be accessed outside the NameNode. This becomes prevalent if the 
> data is required to be displayed using a new user interface.
> The proposal is to create a REST interface to expose all the information 
> displayed on dfshealth.jsp using GET methods. Wrapper classes will be created 
> to serve the data to the REST root resource within the hadoop-hdfs project.
> This will enable the HDFS health screen information to be accessed remotely.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to