hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giuseppe Luciano (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2123) Progress bars in Web UI always at 100% (likely due to non-US locale)
Date Fri, 13 Feb 2015 13:55:12 GMT

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

Giuseppe Luciano commented on YARN-2123:
----------------------------------------

The progress bar doesn't show because of 
"String percent = String.format("%.1f", app.getProgress() * 100.0F);" in "org/apache/hadoop/yarn/server/webapp/AppsBlock.java"
If the language is Italian, for example, the percent is a string with the comma, and so the
output in HTML is:
"<div class="ui-progressbar-value ui-widget-header ui-corner-left" style="width:82,0%">
</div>" if you change the comma this the dot it works.

> Progress bars in Web UI always at 100% (likely due to non-US locale)
> --------------------------------------------------------------------
>
>                 Key: YARN-2123
>                 URL: https://issues.apache.org/jira/browse/YARN-2123
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: webapp
>    Affects Versions: 2.3.0
>            Reporter: Johannes Simon
>            Priority: Minor
>         Attachments: screenshot.png
>
>
> In our cluster setup, the YARN web UI always shows progress bars at 100% (see screenshot,
progress of the reduce step is roughly at 32.82%). I opened the HTML source code to check
(also see screenshot), and it seems the problem is that it uses a comma as decimal mark, where
most browsers expect a dot for floating-point numbers. This could possibly be due to localized
number formatting being used in the wrong place, which would also explain why this bug is
not always visible.



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

Mime
View raw message