Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-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 94F90D521 for ; Sun, 23 Sep 2012 11:38:11 +0000 (UTC) Received: (qmail 46296 invoked by uid 500); 23 Sep 2012 11:38:11 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 46204 invoked by uid 500); 23 Sep 2012 11:38:10 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 46099 invoked by uid 99); 23 Sep 2012 11:38:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Sep 2012 11:38:07 +0000 Date: Sun, 23 Sep 2012 22:38:07 +1100 (NCT) From: "Harsh J (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: <1789613314.113502.1348400287437.JavaMail.jiratomcat@arcas> Subject: [jira] [Moved] (YARN-116) Add exclude/include file , need restart NN or RM. 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/YARN-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Harsh J moved HADOOP-8351 to YARN-116: -------------------------------------- Component/s: (was: util) nodemanager Affects Version/s: (was: 0.23.1) 2.0.0-alpha Key: YARN-116 (was: HADOOP-8351) Project: Hadoop YARN (was: Hadoop Common) > Add exclude/include file , need restart NN or RM. > ------------------------------------------------- > > Key: YARN-116 > URL: https://issues.apache.org/jira/browse/YARN-116 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager > Affects Versions: 2.0.0-alpha > Environment: suse > Reporter: xieguiming > Attachments: HADOOP-835-0.patch, HADOOP-835-1.patch, HADOOP-835.patch > > > "yarn.resourcemanager.nodes.include-path" default value is "", if we need add one include file. and we must restart the RM. > I suggest that adding one include or exclude file, no need restart the RM. only execute the refresh command. > NN is the same. > Modify the HostsFileReader class: > public HostsFileReader(String inFile, > String exFile) > to > public HostsFileReader(Configuration conf, > String NODES_INCLUDE_FILE_PATH,String DEFAULT_NODES_INCLUDE_FILE_PATH, > String NODES_EXCLUDE_FILE_PATH,String DEFAULT_NODES_EXCLUDE_FILE_PATH) > and thus, we can read the config file dynamic. and no need to restart the NM/NN. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira