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

Yongjun Zhang commented on HDFS-9629:
-------------------------------------

Thanks a lot  [~ajisakaa]! 

I'm proposing to change the following section in 
https://wiki.apache.org/hadoop/HowToRelease:

{code}
Creating the release candidate (X.Y.Z-RC<N>)
These steps need to be performed to create the Nth RC for X.Y.Z, where N starts 
from 0.
1. Run mvn rat-check and fix any errors
...
{code}

to

{code}
Creating the release candidate (X.Y.Z-RC<N>)

These steps need to be performed to create the Nth RC for X.Y.Z, where N starts 
from 0.

1. Change the release year in the footer of the Web UI in relevant files.
    NOTE, the following steps are example, and are subject to examination of 
the current code base.
    1.1 find the relevant files
      $ find . -name "*html" -exec grep "<p>Hadoop," {} \; -print
        <div class="col-xs-2"><p>Hadoop, 2014.</p></div>
     ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html
        <div class="col-xs-2"><p>Hadoop, 2014.</p></div>
     ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html
        <div class="col-xs-2"><p>Hadoop, 2014.</p></div>
     ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/secondary/status.html
        <div class="col-xs-2"><p>Hadoop, 2014.</p></div>
     ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/journal/index.html
        <div class="col-xs-2"><p>Hadoop, 2014.</p></div>
     ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/datanode/index.html
   1.2 If the year in the above search result is up-to-date, skip the rest of 
the 1.x steps, otherwise replace the year with current year
      $ sed -i 's/<p>Hadoop, 2014/<p>Hadoop, 2016/g' `find . -name "*html" 
-exec grep "<p>Hadoop, " {} \; -print | grep html`
   1.3 check result
       $ find . -name "*html" -exec grep "<p>Hadoop," {} \; -print
        <div class="col-xs-2"><p>Hadoop, 2016.</p></div>
      ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html
        <div class="col-xs-2"><p>Hadoop, 2016.</p></div>
      ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html
        <div class="col-xs-2"><p>Hadoop, 2016.</p></div>
     ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/secondary/status.html
        <div class="col-xs-2"><p>Hadoop, 2016.</p></div>
     ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/journal/index.html
        <div class="col-xs-2"><p>Hadoop, 2016.</p></div>
     ./hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/datanode/index.html
    1.4 commit the change
       git commit -a -m "Update release year in the footer of the Web UI"

2. Run mvn rat-check and fix any errors
...
{code}

What do you think? 

Thanks.



> Update the footer of Web UI to show year 2016
> ---------------------------------------------
>
>                 Key: HDFS-9629
>                 URL: https://issues.apache.org/jira/browse/HDFS-9629
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>              Labels: supportability
>         Attachments: HDFS-9629.01.patch, HDFS-9629.02.patch, 
> HDFS-9629.03.patch, HDFS-9629.04.patch, HDFS-9629.05.patch, HDFS-9629.06.patch
>
>




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

Reply via email to