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

Jinglun edited comment on HDFS-15120 at 1/16/20 12:31 PM:
----------------------------------------------------------

Hi [~ayushtkn], thanks your comment ! I found the ReconfigurationProtocol is 
used by DataNode too. Using ReconfigurationProtocol will give DataNode the 
refreshBlockPlacementPolicy interface even it doesn't has a 
BlockPlacementPolicy. And I found the NameNode already has a 
GenericRefreshProtocol. I can create a RefreshBlockPlacementPolicyHandler and 
use the GenericRefreshProtocol to refresh. Please let me know your thoughts.

Upload v02.


was (Author: lijinglun):
Hi [~ayushtkn], thanks your comment ! I found the ReconfigurationProtocol is 
used by DataNode too. Using ReconfigurationProtocol will give DataNode the 
refreshBlockPlacementPolicy interface even it doesn't has a 
BlockPlacementPolicy. And I found the NameNode already has a 
GenericRefreshProtocol. I can create a RefreshBlockPlacementPolicyHandler and 
use the GenericRefreshProtocol to refresh. What do you think ?

Upload v02.

> Refresh BlockPlacementPolicy at runtime.
> ----------------------------------------
>
>                 Key: HDFS-15120
>                 URL: https://issues.apache.org/jira/browse/HDFS-15120
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Jinglun
>            Assignee: Jinglun
>            Priority: Major
>         Attachments: HDFS-15120.001.patch, HDFS-15120.002.patch
>
>
> Now if we want to switch BlockPlacementPolicies we need to restart the 
> NameNode. It would be convenient if we can switch it at runtime. For example 
> we can switch between AvailableSpaceBlockPlacementPolicy and 
> BlockPlacementPolicyDefault as needed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to