You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2015/03/03 02:34:56 UTC

ambari git commit: AMBARI-9833. Knox service check fails - potentially due to python command invocation error

Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 62001246f -> 1d6327873


AMBARI-9833. Knox service check fails - potentially due to python command invocation error


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

Branch: refs/heads/branch-2.0.0
Commit: 1d6327873c7ab995b9122b0113a5201950b8784f
Parents: 6200124
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Mon Mar 2 17:32:58 2015 -0800
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Mon Mar 2 17:32:58 2015 -0800

----------------------------------------------------------------------
 .../KNOX/0.5.0.2.2/package/scripts/service_check.py                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1d632787/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/service_check.py b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/service_check.py
index 1d20290..aa887a5 100644
--- a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/service_check.py
+++ b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/service_check.py
@@ -42,7 +42,7 @@ class KnoxServiceCheck(Script):
         validateKnoxFileName = "validateKnoxStatus.py"
         validateKnoxFilePath = format("{tmp_dir}/{validateKnoxFileName}")
         python_executable = sys.executable
-        validateStatusCmd = (format("{python_executable}"), format("{validateKnoxFilePath}"), "-p", format("{knox_host_port}"), "-n", format("{knox_host_name}"))
+        validateStatusCmd = format("{python_executable} {validateKnoxFilePath} -p {knox_host_port} -n {knox_host_name}")
         if params.security_enabled:
           kinit_cmd = format("{kinit_path_local} -kt {smoke_user_keytab} {smokeuser_principal};")
           smoke_cmd = format("{kinit_cmd} {validateStatusCmd}")