Created 08-16-2016 11:20 PM
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.
Created 09-17-2016 11:32 AM
Want to get a detailed solution you have to login/registered on the community
Register/LoginCreated 08-16-2016 11:36 PM
Created 08-16-2016 11:38 PM
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.
Created 08-17-2016 12:15 AM
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.
Created 08-17-2016 12:26 AM
I have started new putty session but still getting the same problem. No luck.
python version is Python 2.7.5
Created 08-17-2016 02:21 AM
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"
Created 08-17-2016 02:57 AM
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
Created 08-17-2016 03:02 AM
Can you try removing python and then reinstalling it.
sudo dpkg -P python2.7
sudo apt-get install python2.7
Created 08-17-2016 02:30 AM
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.
Created 09-17-2016 11:32 AM
Want to get a detailed solution you have to login/registered on the community
Register/Login