Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9059

hadoop-daemons.sh script constraint that all the nodes should use the same installation path.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Won't Fix
    • 1.0.4
    • None
    • bin
    • None
    • Linux

    Description

      To run command on all slave hosts, the bin/hadoop-daemons.sh will call the bin/slaves.sh at last line:

      exec "$bin/slaves.sh" --config $HADOOP_CONF_DIR cd "$HADOOP_HOME" \; "$bin/hadoop-daemon.sh" --config $HADOOP_CONF_DIR "$@"
      

      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?

      exec "$bin/slaves.sh" --config $HADOOP_CONF_DIR cd '$HADOOP_PREFIX' \; "bin/hadoop-daemon.sh" "$@"
      

      Attachments

        Activity

          People

            vivganes Vivek Ganesan
            aptenom Chunliang Lu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 25h
                25h
                Remaining:
                Remaining Estimate - 25h
                25h
                Logged:
                Time Spent - Not Specified
                Not Specified