[
https://issues.apache.org/jira/browse/HDFS-9005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14739969#comment-14739969
]
Ming Ma commented on HDFS-9005:
-------------------------------
Yes, that is a good idea. We discussed it briefly in the context of maintenance
state support HDFS-7877. In the end, we ended up putting maintenance nodes to
another file. That will be another scenario for this general DN properties
support if we want to persist maintenance request. Any host can have properties
like:
{noformat}
"adminRequest": "maintenance"
"maintenance expiration": "Sep 08 00:38:14 UTC 2015"
"maintenance note": "OS upgrade is underway."
{noformat}
In addition, do we have use cases where we need to turn this into more general
DN property/label functionality so that admins can specify any properties?
> Provide support for upgrade domain script
> -----------------------------------------
>
> Key: HDFS-9005
> URL: https://issues.apache.org/jira/browse/HDFS-9005
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Ming Ma
>
> As part of the upgrade domain feature, we need to provide a mechanism to
> specify upgrade domain for each datanode. One way to accomplish that is to
> allow admins specify an upgrade domain script that takes DN ip or hostname as
> input and return the upgrade domain. Then namenode will use it at run time to
> set {{DatanodeInfo}}'s upgrade domain string. The configuration can be
> something like:
> {noformat}
> <property>
> <name>dfs.namenode.upgrade.domain.script.file.name</name>
> <value>/etc/hadoop/conf/upgrade-domain.sh</value>
> </property>
> {noformat}
> just like topology script,
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)