Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.7.3
-
None
-
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.