[jira] [Commented] (MAPREDUCE-2974) Remove references to yui.yahooapis.com from queueinfo.jsp

2011-09-12 Thread Priyo Mustafi (JIRA)

[ 
https://issues.apache.org/jira/browse/MAPREDUCE-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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 configurationbr/Capacity Percentage: 
5.0%br/User Limit: 30%br/Priority Supported: YESbr/-br/Map 
tasksbr/Capacity: 5 slotsbr/Maximum capacity: 33 slotsbr/Used capacity: 0 
(0.0% of Capacity)br/Running tasks: 0br/-br/Reduce 
tasksbr/Capacity: 4 slotsbr/Maximum capacity: 24 slotsbr/Used capacity: 0 
(0.0% of Capacity)br/Running tasks: 0br/-br/Job 
infobr/Number of Waiting Jobs: 0br/Number of users who have submitted jobs: 
0br/;
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 configurationbr/Capacity Percentage: 
5.0%br/User Limit: 30%br/Priority Supported: YESbr/-br/Map 
tasksbr/Capacity: 5 slotsbr/Maximum capacity: 33 slotsbr/Used capacity: 0 
(0.0% of Capacity)br/Running tasks: 0br/-br/Reduce 
tasksbr/Capacity: 4 slotsbr/Maximum capacity: 24 slotsbr/Used capacity: 0 
(0.0% of Capacity)br/Running tasks: 0br/-br/Job 
infobr/Number of Waiting Jobs: 0br/Number of users who have submitted jobs: 
0br/;
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.css2.7.0/build/grids/grids-min.css2.7.0/build/base/base-min.css2.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.js2.7.0/build/layout/layout-min.js2.7.0/build/container/container_core-min.js2.7.0/build/menu/menu-min.js2.7.0/build/stylesheet/stylesheet-min.js2.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




[jira] [Commented] (MAPREDUCE-2974) Remove references to yui.yahooapis.com from queueinfo.jsp

2011-09-09 Thread Joep Rottinghuis (JIRA)

[ 
https://issues.apache.org/jira/browse/MAPREDUCE-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13101373#comment-13101373
 ] 

Joep Rottinghuis commented on MAPREDUCE-2974:
-

Both the stylesheet and the javascripts files come witht he following Copyright 
notice:

Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0



 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.css2.7.0/build/grids/grids-min.css2.7.0/build/base/base-min.css2.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.js2.7.0/build/layout/layout-min.js2.7.0/build/container/container_core-min.js2.7.0/build/menu/menu-min.js2.7.0/build/stylesheet/stylesheet-min.js2.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




[jira] [Commented] (MAPREDUCE-2974) Remove references to yui.yahooapis.com from queueinfo.jsp

2011-09-09 Thread Vinod Kumar Vavilapalli (JIRA)

[ 
https://issues.apache.org/jira/browse/MAPREDUCE-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13101409#comment-13101409
 ] 

Vinod Kumar Vavilapalli commented on MAPREDUCE-2974:


The license shouldn't be a problem from [this 
comment|https://issues.apache.org/jira/browse/MAPREDUCE-862?focusedCommentId=12750902page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12750902].

Also the same comment mentions that if the scripts cannot be downloadable, the 
failure should be graceful. Priyou, are you finding it otherwise?

 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.css2.7.0/build/grids/grids-min.css2.7.0/build/base/base-min.css2.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.js2.7.0/build/layout/layout-min.js2.7.0/build/container/container_core-min.js2.7.0/build/menu/menu-min.js2.7.0/build/stylesheet/stylesheet-min.js2.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