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

Bharat Viswanadham commented on HADOOP-15066:
---------------------------------------------

Thanks [~arpitagarwal] for review.
But one question I have is
we do delete daemonpid file in hadoop_stop_daemon 

{code:java}
if [[ "${pid}" = "${cur_pid}" ]]; then
        rm -f "${pidfile}" >/dev/null 2>&1
{code}

And again in hadoop_stop_secure_daemon

{code:java}
    if [[ "${daemon_pid}" = "${cur_daemon_pid}" ]]; then
      rm -f "${daemonpidfile}" >/dev/null 2>&1
{code}


again we are trying to delete same file, not clear why we have delete logic 2 
times.


> Spurious error stopping secure datanode
> ---------------------------------------
>
>                 Key: HADOOP-15066
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15066
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 3.0.0
>            Reporter: Arpit Agarwal
>            Assignee: Bharat Viswanadham
>         Attachments: HADOOP-15066.00.patch, HADOOP-15066.01.patch
>
>
> There is a spurious error when stopping a secure datanode.
> {code}
> # hdfs --daemon stop datanode
> cat: /var/run/hadoop/hdfs//hadoop-hdfs-root-datanode.pid: No such file or 
> directory
> WARNING: pid has changed for datanode, skip deleting pid file
> cat: /var/run/hadoop/hdfs//hadoop-hdfs-root-datanode.pid: No such file or 
> directory
> WARNING: daemon pid has changed for datanode, skip deleting daemon pid file
> {code}
> The error appears benign. The service was stopped correctly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to