ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhuvnesh2...@apache.org
Subject ambari git commit: AMBARI-15542: PXF service checks fails on secured cluster without YARN (lav jain via bhuvnesh2703)
Date Fri, 25 Mar 2016 21:00:38 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 380bff1cb -> 9ab22de09


AMBARI-15542: PXF service checks fails on secured cluster without YARN (lav jain via bhuvnesh2703)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9ab22de0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9ab22de0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9ab22de0

Branch: refs/heads/branch-2.2
Commit: 9ab22de09bb04afa5fda199649af5a7001e4a476
Parents: 380bff1
Author: Bhuvnesh Chaudhary <bchaudhary@pivotal.io>
Authored: Fri Mar 25 14:01:07 2016 -0700
Committer: Bhuvnesh Chaudhary <bchaudhary@pivotal.io>
Committed: Fri Mar 25 14:01:07 2016 -0700

----------------------------------------------------------------------
 .../common-services/PXF/3.0.0/package/scripts/params.py      | 3 +++
 .../PXF/3.0.0/package/scripts/service_check.py               | 8 ++++++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9ab22de0/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/params.py
b/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/params.py
index eed2d18..ae0c80c 100644
--- a/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/params.py
+++ b/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/params.py
@@ -61,6 +61,9 @@ is_hbase_installed = default("/clusterHostInfo/hbase_master_hosts", None)
is not
 #Hive
 is_hive_installed = default("/clusterHostInfo/hive_server_host", None) is not None
 
+#YARN
+is_yarn_installed = default("/clusterHostInfo/rm_host", None) is not None
+
 # HDFS
 hdfs_site = config['configurations']['hdfs-site']
 default_fs = config['configurations']['core-site']['fs.defaultFS']

http://git-wip-us.apache.org/repos/asf/ambari/blob/9ab22de0/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/service_check.py
b/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/service_check.py
index 40e6d6f..fe3c17e 100644
--- a/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/service_check.py
+++ b/ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/service_check.py
@@ -147,7 +147,15 @@ class PXFServiceCheck(Script):
     """
     Runs a set of PXF HDFS checks
     """
+    import params
     Logger.info("Running PXF HDFS service checks")
+
+    # YARN is required to access HDFS through PXF if security is enabled
+    if params.security_enabled and not params.is_yarn_installed:
+      self.checks_failed += 1
+      Logger.error("HDFS test prerequisite Failed: PXF in a Kerberos-secured cluster requires
YARN to be installed due to a dependency on YARN libraries.")
+      return
+
     try:
       self.__check_if_client_exists("Hadoop-HDFS")
       self.__cleanup_hdfs_data()


Mime
View raw message