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

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.3
    • Fix Version/s: None
    • Component/s: balancer & mover, scripts
    • Labels:
      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

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

              Dates

              • Created:
                Updated: