Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 38F0A10C04 for ; Thu, 6 Feb 2014 18:18:18 +0000 (UTC) Received: (qmail 53785 invoked by uid 500); 6 Feb 2014 18:18:10 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 53768 invoked by uid 500); 6 Feb 2014 18:18:09 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 53724 invoked by uid 99); 6 Feb 2014 18:18:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Feb 2014 18:18:09 +0000 Date: Thu, 6 Feb 2014 18:18:09 +0000 (UTC) From: "Vivek Ganesan (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-9059) hadoop-daemons.sh script constraint that all the nodes should use the same installation path. 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/HADOOP-9059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vivek Ganesan updated HADOOP-9059: ---------------------------------- Issue Type: Improvement (was: Bug) > hadoop-daemons.sh script constraint that all the nodes should use the same installation path. > --------------------------------------------------------------------------------------------- > > Key: HADOOP-9059 > URL: https://issues.apache.org/jira/browse/HADOOP-9059 > Project: Hadoop Common > Issue Type: Improvement > Components: bin > Affects Versions: 1.0.4 > Environment: Linux > Reporter: Chunliang Lu > Assignee: Vivek Ganesan > Priority: Critical > Original Estimate: 25h > Remaining Estimate: 25h > > To run command on all slave hosts, the bin/hadoop-daemons.sh will call the bin/slaves.sh at last line: > {code} > exec "$bin/slaves.sh" --config $HADOOP_CONF_DIR cd "$HADOOP_HOME" \; "$bin/hadoop-daemon.sh" --config $HADOOP_CONF_DIR "$@" > {code} > where slaves.sh will call ssh and pass the `cd "$HADOOP_HOME" \; "$bin/hadoop-daemon.sh" --config $HADOOP_CONF_DIR "$@"` part to the slaves. In bash, the $HADOOP_HOME $bin, and $HADOOP_CONF_DIR will be replaced as current settings on the master, which means that this constraints that all the slave nodes need to share the same path setting as master node. This is not reasonable. In my setting, the cluster has a shared NFS, and I would like to use different configuration files for different machines. I know this is not a recommended way to manage clusters, but I just have no choice. I think other people may face the same problem. How about replace it like following and allow different configuration for master and slaves? > {code} > exec "$bin/slaves.sh" --config $HADOOP_CONF_DIR cd '$HADOOP_PREFIX' \; "bin/hadoop-daemon.sh" "$@" > {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160)