[ 
https://issues.apache.org/jira/browse/HDFS-7184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14157444#comment-14157444
 ] 

Allen Wittenauer commented on HDFS-7184:
----------------------------------------

This won't work as intended.

In order to get something to run as a daemon, it needs to have the daemon=true 
clause in the hdfs script.  (A bug that also exists for balancer.)

At least in trunk, adding custom start/stop scripts isn't really something we 
should do anymore.  At some point, we'll EOL the scripts in sbin.  hdfs 
--daemon start / hdfs --daemon stop mover (after daemon=true is configured) 
will give you daemonization support without the need for a separate wrapper 
script. 

Another bug is that the script has a function called usage.  It should be 
hadoop_usage.  (This bug also exists in start-balancer.sh as well.)

> Add start and stop scripts to run data migration tool as a daemon
> -----------------------------------------------------------------
>
>                 Key: HDFS-7184
>                 URL: https://issues.apache.org/jira/browse/HDFS-7184
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: balancer & mover, scripts
>            Reporter: Benoy Antony
>            Assignee: Benoy Antony
>            Priority: Minor
>         Attachments: HDFS-7184.patch
>
>
> Just like balancer, it is sometimes required to run data migration tool in a 
> daemon mode.
> It will be useful to have scripts equivalent to start-balancer.sh and 
> stop-balancer.sh for data migration tool also.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to