This is an automated email from the ASF dual-hosted git repository.

aonishuk 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 9e6965d  AMBARI-24904. JAR does not exist: 
/var/lib/ambari-agent/lib/fast-hdfs-resource.jar (aonishuk)
9e6965d is described below

commit 9e6965d0bff7d31fc188d9b5be42aac80f94e286
Author: Andrew Onishuk <[email protected]>
AuthorDate: Mon Nov 19 12:37:27 2018 +0200

    AMBARI-24904. JAR does not exist: 
/var/lib/ambari-agent/lib/fast-hdfs-resource.jar (aonishuk)
---
 .../python/resource_management/libraries/providers/hdfs_resource.py     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
 
b/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
index 33aa96a..887b4fb 100644
--- 
a/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
+++ 
b/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
@@ -216,7 +216,7 @@ class WebHDFSUtil:
   @staticmethod
   def is_webhdfs_available(is_webhdfs_enabled, dfs_type):
     # only hdfs seems to support webHDFS
-    return (is_webhdfs_enabled and dfs_type == 'hdfs')
+    return (is_webhdfs_enabled and dfs_type.lower() == 'hdfs')
     
   def run_command(self, *args, **kwargs):
     """

Reply via email to