This is an automated email from the ASF dual-hosted git repository. wuzhiguo pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push: new d091dadf80 AMBARI-25857: Ambari Metrics should in embedded mode when HDFS isn't installed (#3644) d091dadf80 is described below commit d091dadf8061a23ace28fc4103e49f1ddae647ff Author: Yu Hou <524860...@qq.com> AuthorDate: Mon Feb 20 23:03:57 2023 +0800 AMBARI-25857: Ambari Metrics should in embedded mode when HDFS isn't installed (#3644) --- .../src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py index 6a0d24d1f2..9146eedf41 100644 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py @@ -471,6 +471,11 @@ class BIGTOP320StackAdvisor(DefaultStackAdvisor): if "timeline.metrics.service.operation.mode" in services["configurations"]["ams-site"]["properties"]: operatingMode = services["configurations"]["ams-site"]["properties"]["timeline.metrics.service.operation.mode"] + servicesList = [service["StackServices"]["service_name"] for service in services["services"]] + if 'HDFS' not in servicesList: + operatingMode = "embedded" + putAmsSiteProperty("timeline.metrics.service.operation.mode", operatingMode) + if operatingMode == "distributed": putAmsSiteProperty("timeline.metrics.service.watcher.disabled", 'true') putAmsHbaseSiteProperty("hbase.cluster.distributed", 'true') --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org For additional commands, e-mail: commits-h...@ambari.apache.org