[06/51] [abbrv] ambari git commit: AMBARI-19828. UI changes to resolve discrepancies between what the stack vs Ambari reports as "live" for NodeManagers. (Vivek Subramanian via yusaku)

2017-02-17 Thread rzang
AMBARI-19828. UI changes to resolve discrepancies between what the stack vs 
Ambari reports as "live" for NodeManagers. (Vivek Subramanian via yusaku)

(cherry picked from commit 0ffa1bcd924d1d1c3e7236cafe2f23a2199bbdad)

Change-Id: I4e40f78a2cec51ed193766a81f32af641ce556d7


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e016c76b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e016c76b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e016c76b

Branch: refs/heads/branch-feature-BUG-74026
Commit: e016c76b4c2bf5820281cdc9ff56461cbb902fa1
Parents: e052e3f
Author: Yusaku Sako 
Authored: Thu Feb 2 10:36:48 2017 -0800
Committer: Zuul 
Committed: Mon Feb 6 20:04:01 2017 -0800

--
 ambari-web/app/messages.js | 13 -
 ambari-web/app/views/main/service/services/hdfs.js | 10 ++
 ambari-web/app/views/main/service/services/yarn.js |  2 +-
 .../test/views/main/service/services/hdfs_test.js  |  6 --
 .../test/views/main/service/services/yarn_test.js  |  2 +-
 5 files changed, 24 insertions(+), 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/e016c76b/ambari-web/app/messages.js
--
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 941c271..0cd41e0 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -2897,7 +2897,18 @@ Em.I18n.translations = {
   'dashboard.services.yarn.resourceManager.standby':'Standby ResourceManager',
   'dashboard.services.resourceManager.nodes.heap':'ResourceManager Heap',
   'dashboard.services.yarn.nodeManagers.status': 'NodeManagers Status',
-  'dashboard.services.yarn.nodeManagers.status.msg': '{0} active / {1} lost / 
{2} unhealthy / {3} rebooted / {4} decommissioned',
+  'dashboard.services.yarn.nodeManagers.status.active': 'active',
+  'dashboard.services.yarn.nodeManagers.status.lost': 'lost',
+  'dashboard.services.yarn.nodeManagers.status.unhealthy': 'unhealthy',
+  'dashboard.services.yarn.nodeManagers.status.rebooted': 'rebooted',
+  'dashboard.services.yarn.nodeManagers.status.decommissioned': 
'decommissioned',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.active': 'This is the 
number of NodeManagers that are active as reported from the ResourceManager',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.lost': 'This is the 
number of NodeManagers that are lost as reported from the ResourceManager. ' +
+'Even if a NodeManager process is up, the ResourceManager might see the 
status as lost if the NodeManager is not communicating with the ' +
+'ResourceManager as expected. This can be due to situations such as a 
network issue or a hanging NodeManager process due to excessive garbage 
collection.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.unhealthy': 'This is 
the number of NodeManagers that are unhealthy as reported from the 
ResourceManager.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.rebooted': 'This is the 
number of NodeManagers that are in the rebooted state as reported from the 
ResourceManager.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.decommissioned': 'This 
is the number of NodeManagers that are decommissioned as reported from the 
ResourceManager.',
   'dashboard.services.yarn.containers': 'Containers',
   'dashboard.services.yarn.containers.msg': '{0} allocated / {1} pending / {2} 
reserved',
   'dashboard.services.yarn.apps': 'Applications',

http://git-wip-us.apache.org/repos/asf/ambari/blob/e016c76b/ambari-web/app/views/main/service/services/hdfs.js
--
diff --git a/ambari-web/app/views/main/service/services/hdfs.js 
b/ambari-web/app/views/main/service/services/hdfs.js
index 40fb761..f85e095 100644
--- a/ambari-web/app/views/main/service/services/hdfs.js
+++ b/ambari-web/app/views/main/service/services/hdfs.js
@@ -74,10 +74,12 @@ App.MainDashboardServiceHdfsView = 
App.MainDashboardServiceView.extend({
   $('[rel=healthTooltip]').tooltip('destroy')
 }
   }),
-
-  didInsertElement: function() {
-App.tooltip($("[rel='tooltip']"));
-  },
+  
+  metricsNotAvailableObserver: function () {
+if(!this.get("service.metricsNotAvailable")) {
+  App.tooltip($("[rel='tooltip']"));
+}
+  }.observes("service.metricsNotAvailable"),
 
   willDestroyElement: function() {
 $("[rel='tooltip']").tooltip('destroy');

http://git-wip-us.apache.org/repos/asf/ambari/blob/e016c76b/ambari-web/app/views/main/service/services/yarn.js
--
diff --git a/ambari-web/app/views/main/service/services/yarn.js 

[40/50] [abbrv] ambari git commit: AMBARI-19828. UI changes to resolve discrepancies between what the stack vs Ambari reports as "live" for NodeManagers. (Vivek Subramanian via yusaku)

2017-02-03 Thread ncole
AMBARI-19828. UI changes to resolve discrepancies between what the stack vs 
Ambari reports as "live" for NodeManagers. (Vivek Subramanian via yusaku)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/69c8389e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/69c8389e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/69c8389e

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 69c8389ef8d76e8a7a41a8a796f51be044033026
Parents: 9c1b153
Author: Yusaku Sako 
Authored: Thu Feb 2 10:36:48 2017 -0800
Committer: Yusaku Sako 
Committed: Thu Feb 2 10:36:48 2017 -0800

--
 ambari-web/app/messages.js | 13 -
 ambari-web/app/views/main/service/services/hdfs.js | 10 ++
 ambari-web/app/views/main/service/services/yarn.js |  2 +-
 .../test/views/main/service/services/hdfs_test.js  |  6 --
 .../test/views/main/service/services/yarn_test.js  |  2 +-
 5 files changed, 24 insertions(+), 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/69c8389e/ambari-web/app/messages.js
--
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 9644edb..6f8f435 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -2930,7 +2930,18 @@ Em.I18n.translations = {
   'dashboard.services.yarn.resourceManager.standby':'Standby ResourceManager',
   'dashboard.services.resourceManager.nodes.heap':'ResourceManager Heap',
   'dashboard.services.yarn.nodeManagers.status': 'NodeManagers Status',
-  'dashboard.services.yarn.nodeManagers.status.msg': '{0} active / {1} lost / 
{2} unhealthy / {3} rebooted / {4} decommissioned',
+  'dashboard.services.yarn.nodeManagers.status.active': 'active',
+  'dashboard.services.yarn.nodeManagers.status.lost': 'lost',
+  'dashboard.services.yarn.nodeManagers.status.unhealthy': 'unhealthy',
+  'dashboard.services.yarn.nodeManagers.status.rebooted': 'rebooted',
+  'dashboard.services.yarn.nodeManagers.status.decommissioned': 
'decommissioned',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.active': 'This is the 
number of NodeManagers that are active as reported from the ResourceManager',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.lost': 'This is the 
number of NodeManagers that are lost as reported from the ResourceManager. ' +
+'Even if a NodeManager process is up, the ResourceManager might see the 
status as lost if the NodeManager is not communicating with the ' +
+'ResourceManager as expected. This can be due to situations such as a 
network issue or a hanging NodeManager process due to excessive garbage 
collection.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.unhealthy': 'This is 
the number of NodeManagers that are unhealthy as reported from the 
ResourceManager.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.rebooted': 'This is the 
number of NodeManagers that are in the rebooted state as reported from the 
ResourceManager.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.decommissioned': 'This 
is the number of NodeManagers that are decommissioned as reported from the 
ResourceManager.',
   'dashboard.services.yarn.containers': 'Containers',
   'dashboard.services.yarn.containers.msg': '{0} allocated / {1} pending / {2} 
reserved',
   'dashboard.services.yarn.apps': 'Applications',

http://git-wip-us.apache.org/repos/asf/ambari/blob/69c8389e/ambari-web/app/views/main/service/services/hdfs.js
--
diff --git a/ambari-web/app/views/main/service/services/hdfs.js 
b/ambari-web/app/views/main/service/services/hdfs.js
index 40fb761..f85e095 100644
--- a/ambari-web/app/views/main/service/services/hdfs.js
+++ b/ambari-web/app/views/main/service/services/hdfs.js
@@ -74,10 +74,12 @@ App.MainDashboardServiceHdfsView = 
App.MainDashboardServiceView.extend({
   $('[rel=healthTooltip]').tooltip('destroy')
 }
   }),
-
-  didInsertElement: function() {
-App.tooltip($("[rel='tooltip']"));
-  },
+  
+  metricsNotAvailableObserver: function () {
+if(!this.get("service.metricsNotAvailable")) {
+  App.tooltip($("[rel='tooltip']"));
+}
+  }.observes("service.metricsNotAvailable"),
 
   willDestroyElement: function() {
 $("[rel='tooltip']").tooltip('destroy');

http://git-wip-us.apache.org/repos/asf/ambari/blob/69c8389e/ambari-web/app/views/main/service/services/yarn.js
--
diff --git a/ambari-web/app/views/main/service/services/yarn.js 
b/ambari-web/app/views/main/service/services/yarn.js
index cf8adeb..84ba520 100644
--- 

ambari git commit: AMBARI-19828. UI changes to resolve discrepancies between what the stack vs Ambari reports as "live" for NodeManagers. (Vivek Subramanian via yusaku)

2017-02-02 Thread yusaku
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 d2837f786 -> 0ffa1bcd9


AMBARI-19828. UI changes to resolve discrepancies between what the stack vs 
Ambari reports as "live" for NodeManagers. (Vivek Subramanian via yusaku)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0ffa1bcd
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0ffa1bcd
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0ffa1bcd

Branch: refs/heads/branch-2.5
Commit: 0ffa1bcd924d1d1c3e7236cafe2f23a2199bbdad
Parents: d2837f7
Author: Yusaku Sako 
Authored: Thu Feb 2 10:36:48 2017 -0800
Committer: Yusaku Sako 
Committed: Thu Feb 2 10:37:27 2017 -0800

--
 ambari-web/app/messages.js | 13 -
 ambari-web/app/views/main/service/services/hdfs.js | 10 ++
 ambari-web/app/views/main/service/services/yarn.js |  2 +-
 .../test/views/main/service/services/hdfs_test.js  |  6 --
 .../test/views/main/service/services/yarn_test.js  |  2 +-
 5 files changed, 24 insertions(+), 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/0ffa1bcd/ambari-web/app/messages.js
--
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 33a8289..5e0f2d1 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -2896,7 +2896,18 @@ Em.I18n.translations = {
   'dashboard.services.yarn.resourceManager.standby':'Standby ResourceManager',
   'dashboard.services.resourceManager.nodes.heap':'ResourceManager Heap',
   'dashboard.services.yarn.nodeManagers.status': 'NodeManagers Status',
-  'dashboard.services.yarn.nodeManagers.status.msg': '{0} active / {1} lost / 
{2} unhealthy / {3} rebooted / {4} decommissioned',
+  'dashboard.services.yarn.nodeManagers.status.active': 'active',
+  'dashboard.services.yarn.nodeManagers.status.lost': 'lost',
+  'dashboard.services.yarn.nodeManagers.status.unhealthy': 'unhealthy',
+  'dashboard.services.yarn.nodeManagers.status.rebooted': 'rebooted',
+  'dashboard.services.yarn.nodeManagers.status.decommissioned': 
'decommissioned',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.active': 'This is the 
number of NodeManagers that are active as reported from the ResourceManager',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.lost': 'This is the 
number of NodeManagers that are lost as reported from the ResourceManager. ' +
+'Even if a NodeManager process is up, the ResourceManager might see the 
status as lost if the NodeManager is not communicating with the ' +
+'ResourceManager as expected. This can be due to situations such as a 
network issue or a hanging NodeManager process due to excessive garbage 
collection.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.unhealthy': 'This is 
the number of NodeManagers that are unhealthy as reported from the 
ResourceManager.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.rebooted': 'This is the 
number of NodeManagers that are in the rebooted state as reported from the 
ResourceManager.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.decommissioned': 'This 
is the number of NodeManagers that are decommissioned as reported from the 
ResourceManager.',
   'dashboard.services.yarn.containers': 'Containers',
   'dashboard.services.yarn.containers.msg': '{0} allocated / {1} pending / {2} 
reserved',
   'dashboard.services.yarn.apps': 'Applications',

http://git-wip-us.apache.org/repos/asf/ambari/blob/0ffa1bcd/ambari-web/app/views/main/service/services/hdfs.js
--
diff --git a/ambari-web/app/views/main/service/services/hdfs.js 
b/ambari-web/app/views/main/service/services/hdfs.js
index 40fb761..f85e095 100644
--- a/ambari-web/app/views/main/service/services/hdfs.js
+++ b/ambari-web/app/views/main/service/services/hdfs.js
@@ -74,10 +74,12 @@ App.MainDashboardServiceHdfsView = 
App.MainDashboardServiceView.extend({
   $('[rel=healthTooltip]').tooltip('destroy')
 }
   }),
-
-  didInsertElement: function() {
-App.tooltip($("[rel='tooltip']"));
-  },
+  
+  metricsNotAvailableObserver: function () {
+if(!this.get("service.metricsNotAvailable")) {
+  App.tooltip($("[rel='tooltip']"));
+}
+  }.observes("service.metricsNotAvailable"),
 
   willDestroyElement: function() {
 $("[rel='tooltip']").tooltip('destroy');

http://git-wip-us.apache.org/repos/asf/ambari/blob/0ffa1bcd/ambari-web/app/views/main/service/services/yarn.js
--
diff --git a/ambari-web/app/views/main/service/services/yarn.js 

ambari git commit: AMBARI-19828. UI changes to resolve discrepancies between what the stack vs Ambari reports as "live" for NodeManagers. (Vivek Subramanian via yusaku)

2017-02-02 Thread yusaku
Repository: ambari
Updated Branches:
  refs/heads/trunk 9c1b153e2 -> 69c8389ef


AMBARI-19828. UI changes to resolve discrepancies between what the stack vs 
Ambari reports as "live" for NodeManagers. (Vivek Subramanian via yusaku)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/69c8389e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/69c8389e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/69c8389e

Branch: refs/heads/trunk
Commit: 69c8389ef8d76e8a7a41a8a796f51be044033026
Parents: 9c1b153
Author: Yusaku Sako 
Authored: Thu Feb 2 10:36:48 2017 -0800
Committer: Yusaku Sako 
Committed: Thu Feb 2 10:36:48 2017 -0800

--
 ambari-web/app/messages.js | 13 -
 ambari-web/app/views/main/service/services/hdfs.js | 10 ++
 ambari-web/app/views/main/service/services/yarn.js |  2 +-
 .../test/views/main/service/services/hdfs_test.js  |  6 --
 .../test/views/main/service/services/yarn_test.js  |  2 +-
 5 files changed, 24 insertions(+), 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/69c8389e/ambari-web/app/messages.js
--
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 9644edb..6f8f435 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -2930,7 +2930,18 @@ Em.I18n.translations = {
   'dashboard.services.yarn.resourceManager.standby':'Standby ResourceManager',
   'dashboard.services.resourceManager.nodes.heap':'ResourceManager Heap',
   'dashboard.services.yarn.nodeManagers.status': 'NodeManagers Status',
-  'dashboard.services.yarn.nodeManagers.status.msg': '{0} active / {1} lost / 
{2} unhealthy / {3} rebooted / {4} decommissioned',
+  'dashboard.services.yarn.nodeManagers.status.active': 'active',
+  'dashboard.services.yarn.nodeManagers.status.lost': 'lost',
+  'dashboard.services.yarn.nodeManagers.status.unhealthy': 'unhealthy',
+  'dashboard.services.yarn.nodeManagers.status.rebooted': 'rebooted',
+  'dashboard.services.yarn.nodeManagers.status.decommissioned': 
'decommissioned',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.active': 'This is the 
number of NodeManagers that are active as reported from the ResourceManager',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.lost': 'This is the 
number of NodeManagers that are lost as reported from the ResourceManager. ' +
+'Even if a NodeManager process is up, the ResourceManager might see the 
status as lost if the NodeManager is not communicating with the ' +
+'ResourceManager as expected. This can be due to situations such as a 
network issue or a hanging NodeManager process due to excessive garbage 
collection.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.unhealthy': 'This is 
the number of NodeManagers that are unhealthy as reported from the 
ResourceManager.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.rebooted': 'This is the 
number of NodeManagers that are in the rebooted state as reported from the 
ResourceManager.',
+  'dashboard.services.yarn.nodeManagers.status.tooltip.decommissioned': 'This 
is the number of NodeManagers that are decommissioned as reported from the 
ResourceManager.',
   'dashboard.services.yarn.containers': 'Containers',
   'dashboard.services.yarn.containers.msg': '{0} allocated / {1} pending / {2} 
reserved',
   'dashboard.services.yarn.apps': 'Applications',

http://git-wip-us.apache.org/repos/asf/ambari/blob/69c8389e/ambari-web/app/views/main/service/services/hdfs.js
--
diff --git a/ambari-web/app/views/main/service/services/hdfs.js 
b/ambari-web/app/views/main/service/services/hdfs.js
index 40fb761..f85e095 100644
--- a/ambari-web/app/views/main/service/services/hdfs.js
+++ b/ambari-web/app/views/main/service/services/hdfs.js
@@ -74,10 +74,12 @@ App.MainDashboardServiceHdfsView = 
App.MainDashboardServiceView.extend({
   $('[rel=healthTooltip]').tooltip('destroy')
 }
   }),
-
-  didInsertElement: function() {
-App.tooltip($("[rel='tooltip']"));
-  },
+  
+  metricsNotAvailableObserver: function () {
+if(!this.get("service.metricsNotAvailable")) {
+  App.tooltip($("[rel='tooltip']"));
+}
+  }.observes("service.metricsNotAvailable"),
 
   willDestroyElement: function() {
 $("[rel='tooltip']").tooltip('destroy');

http://git-wip-us.apache.org/repos/asf/ambari/blob/69c8389e/ambari-web/app/views/main/service/services/yarn.js
--
diff --git a/ambari-web/app/views/main/service/services/yarn.js 
b/ambari-web/app/views/main/service/services/yarn.js