2014-08-14 1:41 GMT+02:00 Sidharth Kashyap <[email protected]>:
> Hello,

Hi!

> Ambari currently depends on Python version 2.6 and this breaks the 
> installation on systems that have Python version 2.7 and above.
>
> Is there a fix for this?

I'd also like to know if there is a fix

Centos/RHEL7 has only Python 2.7 and installing Ambari fails because
of the Python 2.6 dependency.

It looks like[1] there are still a lot of hardcoded dependencies on
Python 2.6 in the code.

> Here is the copy of the erron on installation attempt:
>
> Error: Package: ambari-server-1.6.1-98.noarch (Updates-ambari-1.6.1)
>            Requires: python(abi) = 2.6
>            Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
>                python(abi) = 2.7
>                python(abi) = 2.7
>  You could try using --skip-broken to work around the problem
>  You could try running: rpm -Va --nofiles --nodigest

For the RPM dependency: This is probably configured here: [2] and can
be adjusted to Python 2.7. However I don't know  about other
assumptions about the Python versions in the code itself and it looks
like there a few of them... so rebuilding with a modified pom.xml
might work but Ambari likely will break somewhere else because of
hardcoded Python paths...

Is there anything outsiders (such as me) can do, to improve the
situation? I'd also love to see Ubuntu support.

regards
Martin


1: https://github.com/apache/ambari/search?p=2&q=python2.6&type=Code
2: https://github.com/apache/ambari/blob/trunk/ambari-server/pom.xml#L219

Reply via email to