ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/2] ambari git commit: AMBARI-14926. ambari cached hdfs.py conflicts with python hdfs lib resulting into monitoring errors (aonishuk)
Date Fri, 25 Mar 2016 11:54:12 GMT
AMBARI-14926. ambari cached hdfs.py conflicts with python hdfs lib resulting into monitoring
errors (aonishuk)


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

Branch: refs/heads/branch-2.2
Commit: 68d42abe1e91711c2a1d1b517887b56a452eeb19
Parents: 7e6b33a
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Fri Mar 25 13:54:11 2016 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Fri Mar 25 13:54:11 2016 +0200

----------------------------------------------------------------------
 .../src/main/python/ambari_agent/PythonReflectiveExecutor.py       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/68d42abe/ambari-agent/src/main/python/ambari_agent/PythonReflectiveExecutor.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/PythonReflectiveExecutor.py b/ambari-agent/src/main/python/ambari_agent/PythonReflectiveExecutor.py
index 613c770..12aa356 100644
--- a/ambari-agent/src/main/python/ambari_agent/PythonReflectiveExecutor.py
+++ b/ambari-agent/src/main/python/ambari_agent/PythonReflectiveExecutor.py
@@ -83,7 +83,7 @@ class PythonContext:
     self.old_logging_disable = logging.root.manager.disable
     
     logging.disable(logging.ERROR)
-    sys.path.append(self.script_dir)
+    sys.path.insert(0, self.script_dir)
     sys.argv = self.pythonCommand[1:]
 
   def __exit__(self, exc_type, exc_val, exc_tb):


Mime
View raw message