diff options
Diffstat (limited to 'ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py')
-rw-r--r-- | ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py b/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py index 0a8f05b992..d2497fd4f2 100644 --- a/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py +++ b/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py @@ -1019,7 +1019,6 @@ class TestHDP22StackAdvisor(TestCase): }, 'hive-env': { 'properties': { - 'cost_based_optimizer': 'On', 'hive_exec_orc_storage_strategy': 'SPEED', 'hive_security_authorization': 'None', 'hive_timeline_logging_enabled': 'true', @@ -1033,7 +1032,6 @@ class TestHDP22StackAdvisor(TestCase): 'hive.server2.tez.initialize.default.sessions': 'false', 'hive.server2.tez.sessions.per.default.queue': '1', 'hive.auto.convert.join.noconditionaltask.size': '268435456', - 'hive.cbo.enable': 'true', 'hive.compactor.initiator.on': 'false', 'hive.compactor.worker.threads': '0', 'hive.compute.query.using.stats': 'true', @@ -1176,7 +1174,8 @@ class TestHDP22StackAdvisor(TestCase): "hive.server2.authentication.kerberos.keytab": "", "hive.server2.authentication.kerberos.principal": "", "hive.server2.authentication.pam.services": "", - "hive.server2.custom.authentication.class": "" + "hive.server2.custom.authentication.class": "", + "hive.cbo.enable": "true" } }, "hiveserver2-site": { @@ -1251,7 +1250,8 @@ class TestHDP22StackAdvisor(TestCase): "hive.server2.authentication.kerberos.keytab": "", "hive.server2.authentication.kerberos.principal": "", "hive.server2.authentication.pam.services": "", - "hive.server2.custom.authentication.class": "" + "hive.server2.custom.authentication.class": "", + "hive.cbo.enable": "true" } }, "hiveserver2-site": { @@ -1315,10 +1315,8 @@ class TestHDP22StackAdvisor(TestCase): #test recommendations services["configurations"]["hive-site"]["properties"]["hive.cbo.enable"] = "false" services["configurations"]["hive-env"]["properties"]["hive_security_authorization"] = "sqlstdauth" - services["changed-configurations"] = [{"type": "hive-site", "name": "hive.cbo.enable"}, - {"type": "hive-env", "name": "hive_security_authorization"}] + services["changed-configurations"] = [{"type": "hive-env", "name": "hive_security_authorization"}] expected["hive-env"]["properties"]["hive_security_authorization"] = "sqlstdauth" - expected["hive-site"]["properties"]["hive.cbo.enable"] = "false" expected["hive-site"]["properties"]["hive.stats.fetch.partition.stats"]="false" expected["hive-site"]["properties"]["hive.stats.fetch.column.stats"]="false" expected["hive-site"]["properties"]["hive.security.authorization.enabled"]="true" @@ -2052,7 +2050,8 @@ class TestHDP22StackAdvisor(TestCase): "properties": { "timeline.metrics.cluster.aggregate.splitpoints": " ", "timeline.metrics.host.aggregate.splitpoints": " ", - "timeline.metrics.host.aggregator.ttl": "86400" + "timeline.metrics.host.aggregator.ttl": "1", + 'timeline.metrics.service.watcher.disabled': 'false' } } } @@ -2230,6 +2229,8 @@ class TestHDP22StackAdvisor(TestCase): expected['ams-hbase-env']['properties']['hbase_regionserver_heapsize'] = '512' expected["ams-hbase-env"]['properties']['hbase_master_xmn_size'] = '102' expected['ams-hbase-env']['properties']['regionserver_xmn_size'] = '384' + expected['ams-site']['properties']['timeline.metrics.host.aggregator.ttl'] = '7' + expected['ams-site']['properties']['timeline.metrics.service.watcher.disabled'] = 'true' self.stackAdvisor.recommendAmsConfigurations(configurations, clusterData, services, hosts) self.assertEquals(configurations, expected) |