[ https://issues.apache.org/jira/browse/MAPREDUCE-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102823#comment-13102823 ]
Priyo Mustafi commented on MAPREDUCE-2974: ------------------------------------------ Though I agree that references to yui.yahooapis.com should be removed but looks like that wasn't the main issue causing the problem. We have queue names in production which have dash/hyphen in them. The generated code is converting them to javascript variables and dashes/hyphen in javascript variable is not allowed and hence nothing shows up. The code generation should be fixed so that it converts the dashes in queue names to underscores when it creates javascript variables. This works ========== var hdmi_hadoopengTreeNode = new YAHOO.widget.MenuNode("hdmi-hadoopeng", tree.getRoot(), false); hdmi_hadoopengTreeNode.data="Queue configuration<br/>Capacity Percentage: 5.0%<br/>User Limit: 30%<br/>Priority Supported: YES<br/>-------------<br/>Map tasks<br/>Capacity: 5 slots<br/>Maximum capacity: 33 slots<br/>Used capacity: 0 (0.0% of Capacity)<br/>Running tasks: 0<br/>-------------<br/>Reduce tasks<br/>Capacity: 4 slots<br/>Maximum capacity: 24 slots<br/>Used capacity: 0 (0.0% of Capacity)<br/>Running tasks: 0<br/>-------------<br/>Job info<br/>Number of Waiting Jobs: 0<br/>Number of users who have submitted jobs: 0<br/>"; hdmi_hadoopengTreeNode.name="hdmi-hadoopeng"; This doesn't work because of the dash/hiphen in the variable names ================================================================== var hdmi-hadoopengTreeNode = new YAHOO.widget.MenuNode("hdmi-hadoopeng", tree.getRoot(), false); hdmi-hadoopengTreeNode.data="Queue configuration<br/>Capacity Percentage: 5.0%<br/>User Limit: 30%<br/>Priority Supported: YES<br/>-------------<br/>Map tasks<br/>Capacity: 5 slots<br/>Maximum capacity: 33 slots<br/>Used capacity: 0 (0.0% of Capacity)<br/>Running tasks: 0<br/>-------------<br/>Reduce tasks<br/>Capacity: 4 slots<br/>Maximum capacity: 24 slots<br/>Used capacity: 0 (0.0% of Capacity)<br/>Running tasks: 0<br/>-------------<br/>Job info<br/>Number of Waiting Jobs: 0<br/>Number of users who have submitted jobs: 0<br/>"; hdmi-hadoopengTreeNode.name="hdmi-hadoopeng"; > Remove references to yui.yahooapis.com from queueinfo.jsp > --------------------------------------------------------- > > Key: MAPREDUCE-2974 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2974 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: scheduler > Affects Versions: 0.22.0 > Reporter: Priyo Mustafi > > queueinfo.jsp has references to yui.yahooapis.com which is not accessible > from secure networks. This cause UI not to show up. > <link rel="stylesheet" type="text/css" > href="http://yui.yahooapis.com/combo?2.7.0/build/fonts/fonts-min.css&2.7.0/build/grids/grids-min.css&2.7.0/build/base/base-min.css&2.7.0/build/assets/skins/sam/skin.css"> > > <!-- Combo-handled YUI JS files: --> > <script type="text/javascript" > src="http://yui.yahooapis.com/combo?2.7.0/build/utilities/utilities.js&2.7.0/build/layout/layout-min.js&2.7.0/build/container/container_core-min.js&2.7.0/build/menu/menu-min.js&2.7.0/build/stylesheet/stylesheet-min.js&2.7.0/build/treeview/treeview-min.js"></script> > This needs to be removed. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira