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

tianjuan edited comment on YARN-9036 at 12/14/18 9:21 AM:
----------------------------------------------------------

Hi, the nodes page failed to show up with this patch(2.9 branch),  the error is 
shown as below, the nodeTableData is just like below. @Jonathan Hung any idea 
about this?

var nodeTableData=[\n[\"\",\"/default-rack\",\"RUNNING\",\"XXX:10025\",\"<a 
href='XXX:8042'>XXX:8042</a>\",\"<br title='1544757863778'>Fri Dec 14 11:24:23 
+0800 2018\",\"\",\"0\",\"<br title='0'>0 B\",\"<br title='8192'>8 
GB\",\"0\",\"8\",\"0\",\"<br title='0'>0 B\",\"0\",\"0\",\"2.9.3-SNAPSHOT\"]\n]

!image-2018-12-14-11-33-54-361.png!

with the given example,

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\r\n" + 
 "\r\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\"],\r\n" + 
 "...]";

after StringEscapeUtils.escapeJava,

  nodeTableDataEscaped = [\"\",\"/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\r\n\r\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\"],\r\n...]

 


was (Author: jutia):
Hi, the nodes page failed to show up with this patch(2.9 branch),  the error is 
shown as below, the nodeTableData is just like below. @Jonathan Hung any idea 
about this?

var nodeTableData=[\n[\"\",\"/default-rack\",\"RUNNING\",\"XXX:10025\",\"<a 
href='XXX:8042'>XXX:8042</a>\",\"<br title='1544757863778'>Fri Dec 14 11:24:23 
+0800 2018\",\"\",\"0\",\"<br title='0'>0 B\",\"<br title='8192'>8 
GB\",\"0\",\"8\",\"0\",\"<br title='0'>0 B\",\"0\",\"0\",\"2.9.3-SNAPSHOT\"]\n]

!image-2018-12-14-11-33-54-361.png!

> 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
>             Fix For: 2.10.0, 3.0.4, 3.1.2, 3.3.0, 3.2.1, 2.9.3
>
>         Attachments: YARN-9036.001.patch, YARN-9036.002.patch, 
> YARN-9036.003.patch, YARN-9036.003.patch, YARN-9036.004.patch, 
> image-2018-12-14-11-33-54-361.png
>
>
> 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to