You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Keqiu Hu (JIRA)" <ji...@apache.org> on 2018/11/20 01:13:00 UTC

[jira] [Commented] (YARN-9036) Escape newlines in health report in YARN UI

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

Keqiu Hu commented on YARN-9036:
--------------------------------

Before the change, there is an invalid new line in the generated Javascript:

 
{code:java}
var nodeTableData=[
["","/IP","UNHEALTHY","host:8041","<a href='//host:8042'>host:8042</a>","<br title='1542676028146'>Tue Nov 20 01:07:08 +0000 2018","ERROR -> /dev/sdb - modules.DISK FAILED | OK -> User:yarn,modules.CPU PASS,modules.RAM PASS,modules.PROCESSES PASS,modules.NET PASS,modules.TMP_FULL PASS

;1/2 local-dirs have errors: [ /tmp/yarn : Directory is not writable: /tmp/yarn ] 1/2 log-dirs have errors: [ /tmp/userlogs : Directory is not writable: /tmp/userlogs ] ","0","<br title='0'>0 B","<br title='0'>0 B","0","0","2.9.0.48"],
...]

{code}
 

 

After the change:

 
{code:java}
var nodeTableData=[
["","/IP","UNHEALTHY","host:8041","<a href='//host:8042'>host:8042</a>","<br title='1542676028146'>Tue Nov 20 01:07:08 +0000 2018","ERROR -> /dev/sdb - modules.DISK FAILED | OK -> User:yarn,modules.CPU PASS,modules.RAM PASS,modules.PROCESSES PASS,modules.NET PASS,modules.TMP_FULL PASS\n;1/2 local-dirs have errors: [ /tmp/yarn : Directory is not writable: /tmp/yarn ] 1/2 log-dirs have errors: [ /tmp/userlogs : Directory is not writable: /tmp/userlogs ] ","0","<br title='0'>0 B","<br title='0'>0 B","0","0","2.9.0.48"],{code}
 

> Escape newlines in health report in YARN UI
> -------------------------------------------
>
>                 Key: YARN-9036
>                 URL: https://issues.apache.org/jira/browse/YARN-9036
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Jonathan Hung
>            Assignee: Keqiu Hu
>            Priority: Major
>         Attachments: YARN-9036.001.patch
>
>
> NodesPage prints health report info in the UI in a javascript string. If health report contains newlines it will garble the generated code and the list of nodes cannot be rendered.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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