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

Haohui Mai commented on HDFS-6230:
----------------------------------

{code}
+{#UpgradeFinalized}
+{:else}
+<div class="alert alert-dismissable alert-warning">
+  <button type="button" class="close" data-dismiss="alert" 
aria-hidden="true">&times;</button>
+
+  <p>Upgrade in progress. Not yet finalized.</p><br/>
+</div>
+{/UpgradeFinalized}
{code}

It might be better to do it in the following code segment:

{code}
{#nn}
{@if cond="{DistinctVersionCount} > 1 || '{RollingUpgradeStatus}'.length"}
<div class="alert alert-dismissable alert-info">
  <button type="button" class="close" data-dismiss="alert" 
aria-hidden="true">&times;</button>

  {#RollingUpgradeStatus}
    <p>Rolling upgrade started at {#helper_date_tostring value="{startTime}"/}. 
</br>
    {#createdRollbackImages}
      Rollback image has been created. Proceed to upgrade daemons.
      {:else}
      Rollback image has not been created.
    {/createdRollbackImages}
    </p>
  {/RollingUpgradeStatus}

  {@if cond="{DistinctVersionCount} > 1"}
    There are {DistinctVersionCount} versions of datanodes currently live:
    {#DistinctVersions}
    {key} ({value}) {@sep},{/sep}
    {/DistinctVersions}
  {/if}
</div>
{/if}

{code}

> Expose upgrade status through NameNode web UI
> ---------------------------------------------
>
>                 Key: HDFS-6230
>                 URL: https://issues.apache.org/jira/browse/HDFS-6230
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.4.0
>            Reporter: Arpit Agarwal
>            Assignee: Mit Desai
>         Attachments: HDFS-6230-NoUpgradesInProgress.png, 
> HDFS-6230-UpgradeInProgress.jpg, HDFS-6230.patch
>
>
> The NameNode web UI does not show upgrade information anymore. Hadoop 2.0 
> also does not have the _hadoop dfsadmin -upgradeProgress_ command to check 
> the upgrade status.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to