You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2016/02/09 11:38:18 UTC
[2/2] ambari git commit: AMBARI-14969. autobootstrap failed on
Cenots7 (aonishuk)
AMBARI-14969. autobootstrap failed on Cenots7 (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a8fd4a66
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a8fd4a66
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a8fd4a66
Branch: refs/heads/branch-2.2
Commit: a8fd4a660b28f85c7194ea301b6ecbdfbc6bab6a
Parents: 1bf225d
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Tue Feb 9 12:38:03 2016 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Tue Feb 9 12:38:03 2016 +0200
----------------------------------------------------------------------
ambari-server/src/main/python/bootstrap.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/a8fd4a66/ambari-server/src/main/python/bootstrap.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/bootstrap.py b/ambari-server/src/main/python/bootstrap.py
index adde438..270adda 100755
--- a/ambari-server/src/main/python/bootstrap.py
+++ b/ambari-server/src/main/python/bootstrap.py
@@ -18,12 +18,14 @@ See the License for the specific language governing permissions and
limitations under the License.
'''
+import sys
+sys.path.append("/usr/lib/python2.6/site-packages/") # this file can be run with python2.7 that why we need this
+
# On Linux, the bootstrap process is supposed to run on hosts that may have installed Python 2.4 and above (CentOS 5).
# Hence, the whole bootstrap code needs to comply with Python 2.4 instead of Python 2.6. Most notably, @-decorators and
# {}-format() are to be avoided.
import time
-import sys
import logging
import pprint
import os