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 6eb600b40c AMBARI-25294: Druid requires HDFS_CLIENT to be co-hosted, doesn't recognize ONEFS_CLIENT (#3459) 6eb600b40c is described below commit 6eb600b40c06b32bed5a22a3c136f3d67e6b2157 Author: Yu Hou <524860...@qq.com> AuthorDate: Fri Nov 4 13:27:35 2022 +0800 AMBARI-25294: Druid requires HDFS_CLIENT to be co-hosted, doesn't recognize ONEFS_CLIENT (#3459) --- ambari-server/src/main/resources/stacks/stack_advisor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ambari-server/src/main/resources/stacks/stack_advisor.py b/ambari-server/src/main/resources/stacks/stack_advisor.py index 7c2cf1844c..fe5e8879ca 100644 --- a/ambari-server/src/main/resources/stacks/stack_advisor.py +++ b/ambari-server/src/main/resources/stacks/stack_advisor.py @@ -1964,6 +1964,9 @@ class DefaultStackAdvisor(StackAdvisor): component = next((component for component in componentsList if component["component_name"] == componentName), None) + if component is None and componentName == 'HDFS_CLIENT': + component = next((component for component in componentsList if component["component_type"] == 'HCFS_CLIENT'), None) + return component def getComponentAttribute(self, component, attribute): --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org For additional commands, e-mail: commits-h...@ambari.apache.org