ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [27/45] git commit: AMBARI-7048. Change component message from "cannot" to "should not"
Date Thu, 28 Aug 2014 17:50:02 GMT
AMBARI-7048. Change component message from "cannot" to "should not"


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

Branch: refs/heads/branch-alerts-dev
Commit: 2051c64e7eec7e5d941cf48d911cf2bbc515db7b
Parents: 94ca14a
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Wed Aug 27 14:38:06 2014 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Wed Aug 27 18:41:44 2014 -0700

----------------------------------------------------------------------
 .../main/resources/stacks/HDP/1.3.2/services/stack_advisor.py    | 4 ++--
 .../main/resources/stacks/HDP/2.0.6/services/stack_advisor.py    | 4 ++--
 .../src/test/python/stacks/2.0.6/common/test_stack_advisor.py    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2051c64e/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/stack_advisor.py
index f3c1e1d..17a26e2 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.2/services/stack_advisor.py
@@ -192,8 +192,8 @@ class HDP132StackAdvisor(StackAdvisor):
       secondaryNameNodeHosts = secondaryNameNodeHosts[0]
       commonHosts = list(set(nameNodeHosts).intersection(secondaryNameNodeHosts))
       for host in commonHosts:
-        items.append( { "type": 'host-component', "level": 'WARN', "message": 'NameNode and
Secondary NameNode cannot be hosted on same machine', "component-name": 'NAMENODE', "host":
str(host) } )
-        items.append( { "type": 'host-component', "level": 'WARN', "message": 'NameNode and
Secondary NameNode cannot be hosted on same machine', "component-name": 'SECONDARY_NAMENODE',
"host": str(host) } )
+        items.append( { "type": 'host-component', "level": 'WARN', "message": 'NameNode and
Secondary NameNode should not be hosted on same machine', "component-name": 'NAMENODE', "host":
str(host) } )
+        items.append( { "type": 'host-component', "level": 'WARN', "message": 'NameNode and
Secondary NameNode should not be hosted on same machine', "component-name": 'SECONDARY_NAMENODE',
"host": str(host) } )
 
     # Validating cardinality
     for component in componentsList:

http://git-wip-us.apache.org/repos/asf/ambari/blob/2051c64e/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
index 083286e..4eb8f02 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
@@ -192,8 +192,8 @@ class HDP206StackAdvisor(StackAdvisor):
       secondaryNameNodeHosts = secondaryNameNodeHosts[0]
       commonHosts = list(set(nameNodeHosts).intersection(secondaryNameNodeHosts))
       for host in commonHosts:
-        items.append( { "type": 'host-component', "level": 'WARN', "message": 'NameNode and
Secondary NameNode cannot be hosted on same machine', "component-name": 'NAMENODE', "host":
str(host) } )
-        items.append( { "type": 'host-component', "level": 'WARN', "message": 'NameNode and
Secondary NameNode cannot be hosted on same machine', "component-name": 'SECONDARY_NAMENODE',
"host": str(host) } )
+        items.append( { "type": 'host-component', "level": 'WARN', "message": 'NameNode and
Secondary NameNode should not be hosted on same machine', "component-name": 'NAMENODE', "host":
str(host) } )
+        items.append( { "type": 'host-component', "level": 'WARN', "message": 'NameNode and
Secondary NameNode should not be hosted on same machine', "component-name": 'SECONDARY_NAMENODE',
"host": str(host) } )
 
     # Validating cardinality
     for component in componentsList:

http://git-wip-us.apache.org/repos/asf/ambari/blob/2051c64e/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py b/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
index 898797a..b1b9f7a 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
@@ -99,8 +99,8 @@ class TestHDP206StackAdvisor(TestCase):
     result = self.stackAdvisor.validateComponentLayout(services, hosts)
 
     expectedItems = [
-      {"message": "NameNode and Secondary NameNode cannot be hosted on same machine", "level":
"WARN", "host": "host1"},
-      {"message": "NameNode and Secondary NameNode cannot be hosted on same machine", "level":
"WARN", "host": "host1"},
+      {"message": "NameNode and Secondary NameNode should not be hosted on same machine",
"level": "WARN", "host": "host1"},
+      {"message": "NameNode and Secondary NameNode should not be hosted on same machine",
"level": "WARN", "host": "host1"},
       {"message": "Host is not used", "level": "ERROR", "host": "host2"}
     ]
     self.assertValidationResult(expectedItems, result)


Mime
View raw message