[ https://issues.apache.org/jira/browse/HDFS-7204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14164476#comment-14164476 ]
Allen Wittenauer commented on HDFS-7204: ---------------------------------------- TL;DR: no. Longer: In branch-2 and earlier, there are the sbin/start-balancer.sh and sbin/stop-balancer.sh. These commands basically turn balancer into a background process that, like when you run it in interactive mode, runs until completion. The difference is that the output is sent to a log file. These commands do this by running the balancer underneath hadoop-daemon.sh. Post-HADOOP-9902, however, hadoop-daemon.sh has been neutered, moving all of its functionality into hadoop-functions.sh with bin/hdfs, bin/mapred, bin/yarn, etc. These scripts have some glue that triggers the necessarily bits to run stuff into this background mode. When 9902 was committed, running the balancer in the previous way was broken (completely my fault!). This restores that functionality. Also, since it is running in this background/daemon mode, it also gets a working pid file and the ability to do hdfs --daemon status to see if the balancer is still running. To get the functionality that you are talking about would require much more extensive changes. Most people with large enough setups that want to run balancer "permanently" tend to just run it from cron or whatever. > balancer doesn't run as a daemon > -------------------------------- > > Key: HDFS-7204 > URL: https://issues.apache.org/jira/browse/HDFS-7204 > Project: Hadoop HDFS > Issue Type: Bug > Components: scripts > Reporter: Allen Wittenauer > Assignee: Allen Wittenauer > Labels: newbie > Attachments: HDFS-7204-01.patch, HDFS-7204.patch > > > From HDFS-7184, minor issues with balancer: > * daemon isn't set to true in hdfs to enable daemonization > * start-balancer script has usage instead of hadoop_usage -- This message was sent by Atlassian JIRA (v6.3.4#6332)