You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Íñigo Goiri (Jira)" <ji...@apache.org> on 2020/06/17 22:09:00 UTC
[jira] [Commented] (HDFS-15417) Lazy get the datanode report for
federation WebHDFS operations
[ https://issues.apache.org/jira/browse/HDFS-15417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17138869#comment-17138869 ]
Íñigo Goiri commented on HDFS-15417:
------------------------------------
I think it makes sense to restrict when we actually get the datanode report.
[~crh], [~ayushtkn] any thoughts here?
> Lazy get the datanode report for federation WebHDFS operations
> --------------------------------------------------------------
>
> Key: HDFS-15417
> URL: https://issues.apache.org/jira/browse/HDFS-15417
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: federation, rbf, webhdfs
> Reporter: Ye Ni
> Assignee: Ye Ni
> Priority: Minor
>
> *Why*
> For WebHDFS CREATE, OPEN, APPEND and GETFILECHECKSUM operations, router or namenode needs to get the datanodes where the block is located, then redirect the request to one of the datanodes.
> However, this chooseDatanode action in router is much slower than namenode, which directly affects the WebHDFS operations above.
> For namenode WebHDFS, it normally takes tens of milliseconds, while router always takes more than 2 seconds.
> *How*
> Only get the datanode report when necessary in router. It is a very expense operation where all the time is spent on.
> This is only need when we want to exclude some datanodes or find a random datanode for CREATE.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org