Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

ambari-server installation

avatar
Rising Star

I am trying to install ambari-server in Ubuntu. while ambari-server install or setup system asking about install python >2.6 .

I installed python 2.7 version then trying to setup the ambari-server then also prompting the same that "Need python version >2.6.

Previously it was not asked like that. could you please help me.

1 ACCEPTED SOLUTION

avatar
New Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
10 REPLIES 10

avatar
Rising Star

avatar
Rising Star

using Ubuntu OS -I was installed the other server but it doesn't ask about python installation in the server. I don't know where I am missing the steps to install the ambari-server.

avatar
Super Guru

@narender pasunooti

I will start with something very basic. After installing python, did you start a new ssh window or putty session? if not, can you please try that first. Also run python -V to find python version.

avatar
Rising Star

I have started new putty session but still getting the same problem. No luck.

python version is Python 2.7.5

avatar
Super Guru

@narender pasunooti

Please check the following code (line 81). Basically your python version is evaluating to less than 2.6. It is definitely not coming evaluating as 2.7.5.

https://github.com/apache/ambari/blob/trunk/ambari-server/sbin/ambari-server

What is your PYTHON home?

Can you run "/usr/bin/python -V" and share the result.

If you still see the message then based on following link, you can try with "--skip-borken"

https://issues.apache.org/jira/browse/AMBARI-6845

avatar
Rising Star

i am getting the result : Python 2.7.6

But ubuntu doesn't have -skip-broken function it seems and it is not working. Please give the ubuntu related code.

When shall I use the --skip-broken command ? any sample code please.

Is this really works?

Thanks,

Narender

avatar
Super Guru

Can you try removing python and then reinstalling it.

  1. sudo dpkg -P python2.7
  2. sudo apt-get install python2.7

http://askubuntu.com/questions/426664/how-do-i-reinstall-python-on-my-ubuntu-12-04-server-using-apt-...

avatar

@narender pasunooti

Here are Python supported versions for HDP

For CentOS 6: Python 2.6.*

For SLES 11: Python 2.6.8 or later

For CentOS 7, Ubuntu 12, Ubuntu 14, and Debian 7: Python 2.7.*

https://community.hortonworks.com/questions/23315/using-python-279-with-hdp-24.html

I hope this will help you.

avatar
New Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login