Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2712D10A0D for ; Tue, 8 Sep 2015 18:34:56 +0000 (UTC) Received: (qmail 64459 invoked by uid 500); 8 Sep 2015 18:34:46 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 64409 invoked by uid 500); 8 Sep 2015 18:34:46 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 64254 invoked by uid 99); 8 Sep 2015 18:34:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2015 18:34:46 +0000 Date: Tue, 8 Sep 2015 18:34:46 +0000 (UTC) From: "Colin Patrick McCabe (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9005) Provide support for upgrade domain script MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-9005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14735356#comment-14735356 ] Colin Patrick McCabe commented on HDFS-9005: -------------------------------------------- Hi [~mingma], Why not use an XML file to set the upgrade domain for each DataNode instead of a script? Spawning scripts has been awkward in the past since it's slow and they can fail. > 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} > > dfs.namenode.upgrade.domain.script.file.name > /etc/hadoop/conf/upgrade-domain.sh > > {noformat} > just like topology script, -- This message was sent by Atlassian JIRA (v6.3.4#6332)