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

hadoop-config.sh - bug in --hosts argument

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • None
    • Linux

    Description

      I think there's a typo in the hadoop-config.sh which broke slave start in cluster mode.

      To reproduce it :

      /usr/local/hadoop/sbin/hadoop-daemons.sh --config /etc/hadoop/conf --hosts slaves start datanode

      here's the patch :

      — hadoop-dist/target/hadoop-2.4.0/libexec/hadoop-config.sh 2014-04-22 12:20:45.000000000 -0400
      +++ hadoop-dist/target/hadoop-2.4.0/libexec/hadoop-config.sh 2014-04-22 12:21:00.000000000 -0400
      @@ -93,7 +93,7 @@
      if [ "--hosts" = "$1" ]
      then
      shift

      • export HADOOP_SLAVES="${HADOOP_CONF_DIR}/$$1"
        + export HADOOP_SLAVES="${HADOOP_CONF_DIR}/$1"
        shift
        elif [ "--hostnames" = "$1" ]
        then

      Attachments

        1. hadoop-10531-1.patch
          0.5 kB
          Sebastien Barrier
        2. hadoop-10531-2.patch
          0.5 kB
          Sebastien Barrier

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sbarrier Sebastien Barrier
            sbarrier Sebastien Barrier
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment