You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jl...@apache.org on 2015/03/04 07:37:25 UTC
ambari git commit: AMBARI-9884: Secured cluster is all green but has
a busy ambari-agent log (jluniya)
Repository: ambari
Updated Branches:
refs/heads/trunk 81209311e -> e4b5f42c0
AMBARI-9884: Secured cluster is all green but has a busy ambari-agent log (jluniya)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e4b5f42c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e4b5f42c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e4b5f42c
Branch: refs/heads/trunk
Commit: e4b5f42c009586bc2e47984dc12ca61d346bb852
Parents: 8120931
Author: Jayush Luniya <jl...@hortonworks.com>
Authored: Tue Mar 3 22:37:14 2015 -0800
Committer: Jayush Luniya <jl...@hortonworks.com>
Committed: Tue Mar 3 22:37:14 2015 -0800
----------------------------------------------------------------------
.../src/main/python/ambari_agent/PythonExecutor.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/e4b5f42c/ambari-agent/src/main/python/ambari_agent/PythonExecutor.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/PythonExecutor.py b/ambari-agent/src/main/python/ambari_agent/PythonExecutor.py
index d3115d0..b165857 100644
--- a/ambari-agent/src/main/python/ambari_agent/PythonExecutor.py
+++ b/ambari-agent/src/main/python/ambari_agent/PythonExecutor.py
@@ -77,7 +77,7 @@ class PythonExecutor:
script_params += [tmpstructedoutfile, logger_level, tmp_dir]
pythonCommand = self.python_command(script, script_params)
- logger.info("Running command " + pprint.pformat(pythonCommand))
+ logger.debug("Running command " + pprint.pformat(pythonCommand))
if handle is None:
tmpout, tmperr = self.open_subprocess_files(tmpoutfile, tmperrfile, override_output_files)
@@ -111,7 +111,7 @@ class PythonExecutor:
(" after waiting %s secs" % str(timeout) if timeout else "")
returncode = 999
result = self.condenseOutput(out, error, returncode, structured_out)
- logger.info("Result: %s" % result)
+ logger.debug("Result: %s" % result)
return result
def read_result_from_files(self, out_path, err_path, structured_out_path):
@@ -197,10 +197,10 @@ class BackgroundThread(threading.Thread):
def run(self):
process_out, process_err = self.pythonExecutor.open_subprocess_files(self.holder.out_file, self.holder.err_file, True)
- logger.info("Starting process command %s" % self.holder.command)
+ logger.debug("Starting process command %s" % self.holder.command)
process = self.pythonExecutor.launch_python_subprocess(self.holder.command, process_out, process_err)
- logger.info("Process has been started. Pid = %s" % process.pid)
+ logger.debug("Process has been started. Pid = %s" % process.pid)
self.holder.handle.pid = process.pid
self.holder.handle.status = BackgroundCommandExecutionHandle.RUNNING_STATUS
@@ -210,6 +210,6 @@ class BackgroundThread(threading.Thread):
self.holder.handle.exitCode = process.returncode
process_condensed_result = self.pythonExecutor.prepare_process_result(process, self.holder.out_file, self.holder.err_file, self.holder.structured_out_file)
- logger.info("Calling callback with args %s" % process_condensed_result)
+ logger.debug("Calling callback with args %s" % process_condensed_result)
self.holder.handle.on_background_command_complete_callback(process_condensed_result, self.holder.handle)
- logger.info("Exiting from thread for holder pid %s" % self.holder.handle.pid)
+ logger.debug("Exiting from thread for holder pid %s" % self.holder.handle.pid)