ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject ambari git commit: AMBARI-14252. Enable logoutput for Accumulo service check (Josh Elser via smohanty)
Date Tue, 05 Jan 2016 00:00:41 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 7a9e6243b -> a9419143f


AMBARI-14252. Enable logoutput for Accumulo service check (Josh Elser via smohanty)


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

Branch: refs/heads/trunk
Commit: a9419143f0c3749328f98d782fa4a2ed1ffdc880
Parents: 7a9e624
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Mon Jan 4 16:00:25 2016 -0800
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Mon Jan 4 16:00:25 2016 -0800

----------------------------------------------------------------------
 .../1.6.1.2.2.0/package/scripts/service_check.py    | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a9419143/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/service_check.py
b/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/service_check.py
index 01be0fe..91b2fcd 100644
--- a/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/service_check.py
+++ b/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/service_check.py
@@ -42,15 +42,15 @@ class AccumuloServiceCheck(Script):
                                   'deletetable -f testtable\n\n')
       )
       if params.security_enabled and params.has_secure_user_auth:
-        Execute( format("{smokeuser_kinit_cmd} "
-                        "{client_script} shell -f {cmdfile}"),
-                 timeout=30,
-                 user=params.smoke_test_user)
+        cmd = format("{smokeuser_kinit_cmd} "
+                        "{client_script} shell -f {cmdfile}")
       else:
-        Execute( format("{client_script} shell -u {smoke_test_user} "
-                        "-p {smoke_test_password} -f {cmdfile}"),
-                 timeout=30,
-                 user=params.smoke_test_user)
+        cmd = format("{client_script} shell -u {smoke_test_user} "
+                        "-p {smoke_test_password} -f {cmdfile}")
+      Execute(cmd,
+              timeout=30,
+              user=params.smoke_test_user,
+              logoutput=True)
     finally:
       try_remove(cmdfile)
 


Mime
View raw message