[
https://issues.apache.org/jira/browse/HDFS-5585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13899560#comment-13899560
]
Kihwal Lee commented on HDFS-5585:
----------------------------------
Here is what the patch does:
For the immediately visible changes by users, two new DFSAdmin commands:
shutdownDatanode and getDatanodeInfo. shutdownDatanode can be called with the
upgrade option to make the datanode to do required prep before upgrade. This
includes sending an OOB Ack to all writers and saving some state for quick
restart (to be added by other jira). The getDatanodeInfo command can be used as
a datanode liveness check as well as upgrade completeness check, as it shows
the version of running software & config and the uptime.
The shoutdown command will be hooked up to the OOB ack sending in HDFS-5583.
> Provide admin commands for data node upgrade
> --------------------------------------------
>
> Key: HDFS-5585
> URL: https://issues.apache.org/jira/browse/HDFS-5585
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: datanode, ha, hdfs-client, namenode
> Reporter: Kihwal Lee
> Assignee: Kihwal Lee
> Attachments: HDFS-5585.patch, HDFS-5585.patch, HDFS-5585.patch
>
>
> Several new methods to ClientDatanodeProtocol may need to be added to support
> querying version, initiating upgrade, etc. The admin CLI needs to be added
> as well. This primary use case is for rolling upgrade, but this can be used
> for preparing for a graceful restart of a data node for any reasons.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)