Repository: ambari Updated Branches: refs/heads/branch-2.4 d475f4155 -> 519a6c485
AMBARI-18828: Ensure HAWQ -PXF service check uses a tmp directory (mithmatt) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/519a6c48 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/519a6c48 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/519a6c48 Branch: refs/heads/branch-2.4 Commit: 519a6c48595cd5639f4fe1171dfaedfdb135beee Parents: d475f41 Author: Matt <[email protected]> Authored: Tue Nov 8 15:28:47 2016 -0800 Committer: Matt <[email protected]> Committed: Tue Nov 8 15:28:47 2016 -0800 ---------------------------------------------------------------------- .../common-services/HAWQ/2.0.0/package/scripts/hawq_constants.py | 2 +- .../common-services/HAWQ/2.0.0/package/scripts/service_check.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/519a6c48/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawq_constants.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawq_constants.py b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawq_constants.py index 3ced8d1..ade7acd 100644 --- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawq_constants.py +++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawq_constants.py @@ -63,7 +63,7 @@ hawq_keytab_file = "/etc/security/keytabs/hawq.service.keytab" # HAWQ-PXF check params PXF_PORT = "51200" -pxf_hdfs_test_dir = "/user/{0}/hawq_pxf_hdfs_service_check".format(hawq_user) +pxf_hdfs_test_dir = "/tmp/hawq_pxf_hdfs_service_check" # Timeouts default_exec_timeout = 600 http://git-wip-us.apache.org/repos/asf/ambari/blob/519a6c48/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/service_check.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/service_check.py b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/service_check.py index 6e7ea0f..e0796d8 100644 --- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/service_check.py +++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/service_check.py @@ -164,6 +164,7 @@ class HAWQServiceCheck(Script): params.HdfsResource(hawq_constants.pxf_hdfs_test_dir, type="directory", action="delete_on_execute") + params.HdfsResource(None, action="execute") if __name__ == "__main__":
