You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/04 05:27:40 UTC

[ambari] branch trunk updated: AMBARI-25294: Druid requires HDFS_CLIENT to be co-hosted, doesn't recognize ONEFS_CLIENT (#3459)

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 <52...@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-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org