Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13124

hadoop-daemon.sh exits with 1 when running HDFS balancer on balanced cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.3
    • None
    • balancer & mover, scripts
    • None

    Description

      When running HDFS balancer via sbin/start-balancer.sh script on a balanced cluster the script exits with 1 though the CLI behind it (i.e. hdfs balancer) exits with 0. This is probably caused by following piece of code found in hadoop-daemon.sh:

      sleep 3;
      if ! ps -p $! > /dev/null ; then
        exit 1
      fi
      

      It seems the CLI command finishes so quickly in case of a balanced cluster that the above ps does not findĀ it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kostrzewa Zbigniew Kostrzewa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: