[
https://issues.apache.org/jira/browse/AMBARI-22516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16267710#comment-16267710
]
Doroszlai, Attila commented on AMBARI-22516:
--------------------------------------------
Ambari does not depend on Python version 2.6, it can work with 2.7 fine.
However, it turns out that the [{{brp-python-bytecompile}}
script|https://github.com/rpm-software-management/rpm/blob/rpm-4.11.x/scripts/brp-python-bytecompile#L39-L44]
uses {{/usr/bin/python2.6}} to compile source files that go into
{{/usr/lib/python2.6}}.
[^AMBARI-22516.branch-2.6.patch] is a workaround that allows the build to
proceed in spite of this failure by setting the scripts {{errors_terminate}}
param to false. The patch can be applied to the source extracted from
{{apache-ambari-2.6.0-src.tar.gz}}. I could not get python compilation to be
entirely skipped.
> Ambari 2.6 build has python 2.6 dependency
> ------------------------------------------
>
> Key: AMBARI-22516
> URL: https://issues.apache.org/jira/browse/AMBARI-22516
> Project: Ambari
> Issue Type: Improvement
> Environment: RHEL 7.4
> Reporter: Ronald van de Kuil
> Priority: Critical
> Attachments: AMBARI-22516.branch-2.6.patch
>
>
> The installation guide for Ambari 2.6 instructs us to build the RHEL rpm
> using:
> mvn -B clean install package rpm:rpm -DnewVersion=2.6.0.0.0 -DskipTests
> -Dpython.ver="python >= 2.6"
> I just tried this on RHEL 7 (which is not listed in the instructions) and
> then the build fails:
> /usr/lib/rpm/brp-python-bytecompile: line 44: /usr/bin/python2.6: No such
> file or directory
> I read that downgrading RHEL 7 to use python 2.6 is not a good idea because
> allegedly several OS scripts depend on it.
> I saw a different JIRA issue that gave some suggestions to overwrite the
> required version using commandline options.
> Should ambari be able to run on the version 7 of the OS at this moment? .And
> if so, should it work fine with the 2.7 version of python?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)