You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by db...@apache.org on 2016/05/13 14:26:54 UTC
ambari git commit: AMBARI-16659. Zeppelin View has issues in opening
iFrame,
when zeppelin view is installed on non-gateway node. (Gaurav Nagar via
dipayanb)
Repository: ambari
Updated Branches:
refs/heads/trunk 16014374e -> 13fda8a38
AMBARI-16659. Zeppelin View has issues in opening iFrame, when zeppelin view is installed on non-gateway node. (Gaurav Nagar via dipayanb)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/13fda8a3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/13fda8a3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/13fda8a3
Branch: refs/heads/trunk
Commit: 13fda8a38a4f84de0fa557249481cc89950da9f8
Parents: 1601437
Author: Dipayan Bhowmick <di...@gmail.com>
Authored: Fri May 13 19:56:37 2016 +0530
Committer: Dipayan Bhowmick <di...@gmail.com>
Committed: Fri May 13 19:56:37 2016 +0530
----------------------------------------------------------------------
contrib/views/zeppelin/src/main/resources/WEB-INF/index.jsp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/13fda8a3/contrib/views/zeppelin/src/main/resources/WEB-INF/index.jsp
----------------------------------------------------------------------
diff --git a/contrib/views/zeppelin/src/main/resources/WEB-INF/index.jsp b/contrib/views/zeppelin/src/main/resources/WEB-INF/index.jsp
index 5c57343..9247b8b 100644
--- a/contrib/views/zeppelin/src/main/resources/WEB-INF/index.jsp
+++ b/contrib/views/zeppelin/src/main/resources/WEB-INF/index.jsp
@@ -35,8 +35,8 @@
data['items'][0]['Clusters']['cluster_name'] +
'/hosts?fields=Hosts%2Fpublic_host_name%2Chost_components%2FHostRoles%2Fcomponent_name',
function (data) {
- for (var i in data['items']) {
- for (var j in data['items'][i]['host_components']) {
+ for (var i = 0; i < data['items'].length; i++) {
+ for (var j = 0; j < data['items'][i]['host_components'].length; j++) {
if (data['items'][i]['host_components'][j]['HostRoles']['component_name'] == 'ZEPPELIN_MASTER') {
var url = '//' + data['items'][i]['host_components'][j]['HostRoles']['host_name'] + ':' + port;
iframe.src = url;
@@ -53,4 +53,4 @@
});
</script>
</body>
-</html>
+</html>
\ No newline at end of file