slfan1989 commented on PR #5762: URL: https://github.com/apache/hadoop/pull/5762#issuecomment-1602421592
@goiri I have carefully read the code related to the `--daemon` flag and conducted experiments in a testing environment. The daemon of hdfs/yarn contains 3 operations, namely start|status|stop - hdfs --daemon start namenode When starting the namenode, we can use the command `hdfs --daemon start namenode`, which initiates the namenode without generating any output information. I believe this behavior is appropriate. <img width="482" alt="image" src="https://github.com/apache/hadoop/assets/55643692/8fbb023c-8153-4dc8-aee2-4c164893a476"> - hdfs --daemon status namenode When utilizing the `hdfs --daemon status namenode` command, I still expect it to provide some information regarding the namenode's status. Nevertheless, I have noticed that executing this command does not yield any output. <img width="475" alt="image" src="https://github.com/apache/hadoop/assets/55643692/dd92256b-6741-4a5f-b3bb-299bbe72b06d"> I have added some output information for the `status` command. - If the service is in a running state. <img width="484" alt="image" src="https://github.com/apache/hadoop/assets/55643692/48f6cdb7-1acc-480f-bc8c-9c8c2615e9db"> - If the service is in a stopped state. <img width="489" alt="image" src="https://github.com/apache/hadoop/assets/55643692/57446a1f-f19f-419e-8f10-ab4c35770276"> This modification only affects the `status` command of the daemon and does not have any impact on the 'start' or 'stop' commands. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org