hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kanaka Kumar Avvaru (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9064) NN old UI (block_info_xml) not available in 2.7.x
Date Tue, 22 Sep 2015 09:57:04 GMT

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

Kanaka Kumar Avvaru commented on HDFS-9064:
-------------------------------------------

block_info_xml.jsp which was producing XML output was removed as all JSPs are faded out in
new web UI framework.

I think get block info feature can be provided back through webhdfs GET request.

*URL syntax:*
{code:xml}
http://<nnAddress>:<port#>//webhdfs/v1/?OP=GETBLOCKINFO&blockId=xxx
{code}

*Sample Output:*

{code:xml}
{
  "BlockInfo":
  {
    "block_id"      : 8888705098093096373,
    "block_name"       : blk_8888705098093096373,
    "file":
    
      {
        "local_name"      : "some_file_name",
        "local_directory"       : "/input/",
       ...
      },
	"Replicas":
     [
      {
        "host_name"      : hostname1,
        "is_corrupt"       : false,
	   },
	   {
        "host_name"      : hostname2,
        "is_corrupt"       : false,
	   },...
	 ]
  }
}
{code}

[~shahrs87], as the changes are incompatible to old API, clients have to update the code to
use webhdfs and parse the JSON content inplace of earlier XML parsing. I think it should be
fine. Please give your view.

If fine, I will go a head to implement the same.

> NN old UI (block_info_xml) not available in 2.7.x
> -------------------------------------------------
>
>                 Key: HDFS-9064
>                 URL: https://issues.apache.org/jira/browse/HDFS-9064
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: HDFS
>    Affects Versions: 2.7.0
>            Reporter: Rushabh S Shah
>            Assignee: Kanaka Kumar Avvaru
>            Priority: Critical
>
> In 2.6.x hadoop deploys, given a blockId it was very easy to find out the file name and
the locations of replicas (also whether they are corrupt or not).
> This was the REST call:
> {noformat}
>  http://<nnAddress>:<port#>/block_info_xml.jsp?blockId=xxx
> {noformat}
> But this was removed by HDFS-6252 in 2.7 builds.
> Creating this jira to restore that functionality.



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

Mime
View raw message