From yarn-issues-return-47930-apmail-hadoop-yarn-issues-archive=hadoop.apache.org@hadoop.apache.org Fri Feb 13 13:55:25 2015 Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E73AC174EB for ; Fri, 13 Feb 2015 13:55:24 +0000 (UTC) Received: (qmail 71535 invoked by uid 500); 13 Feb 2015 13:55:12 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 71486 invoked by uid 500); 13 Feb 2015 13:55:12 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 71474 invoked by uid 99); 13 Feb 2015 13:55:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 13:55:12 +0000 Date: Fri, 13 Feb 2015 13:55:12 +0000 (UTC) From: "Giuseppe Luciano (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2123) Progress bars in Web UI always at 100% (likely due to non-US locale) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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: "
" 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)