You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Yanlei Yu (Jira)" <ji...@apache.org> on 2022/10/12 11:07:00 UTC

[jira] [Commented] (HDFS-16765) "hdfs namenode -rollingUpgrade started" has long execution time

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

Yanlei Yu commented on HDFS-16765:
----------------------------------

This is normal

Normal start and stop command is used in the namenode or datanode: sbin/hadoop - daemon. Sh start | stop the namenode | datanode

In hadoop-daemon.sh, the final execution logic is:  nohup nice -n $HADOOP_NICENESS $hdfsScript --config $HADOOP_CONF_DIR $command "$@" > "$log" 2>&1 < /dev/null &

Look at rolling upgrade start namnode command: bin/hdfs namenode - rollingUpgrade started, actually also is to use bin/hdfs, just no nohup to the background

Therefore, it is normal that the bin/hdfs namode -rollingUpgrade started command does not exit when the rolling upgrade starts. The bin/hdfs command is used in the end, just like the normal start command.

You can have it run in the background, like this:{{{}nohup bin/hdfs namenode {}}}{{-rollingUpgrade}} {{started > logs/nn1RollingUpgrade.log 2>&1 &  }}

> "hdfs namenode -rollingUpgrade started"  has long execution time   
> -------------------------------------------------------------------
>
>                 Key: HDFS-16765
>                 URL: https://issues.apache.org/jira/browse/HDFS-16765
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: rolling upgrades
>    Affects Versions: 3.3.4
>            Reporter: Haobetter
>            Priority: Major
>
> I upgraded version 3.2.1 to version 3.3.4 and executed "HDFS namode -rollingUpgrade Started", which did not stop after 10 hours. I don't think that's too long.。



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org