-
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
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.