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

ASF GitHub Bot commented on HADOOP-18779:
-----------------------------------------

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.




> Improve hadoop-function.sh#status script
> ----------------------------------------
>
>                 Key: HADOOP-18779
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18779
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: common
>    Affects Versions: 3.4.0
>            Reporter: Shilun Fan
>            Assignee: Shilun Fan
>            Priority: Major
>              Labels: pull-request-available
>
> When we use yarn --daemon status router/nodemanager, I found that no 
> information can be displayed. I checked the script and modified the script of 
> hadoop-functions.sh#status to increase the output information.
> yarn --daemon status router
> - If the service is started
> router is running as process 47626.
> - If the service is stop
> router is stopped.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to