[ 
https://issues.apache.org/jira/browse/AMBARI-13229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14908573#comment-14908573
 ] 

Jonathan Hurley commented on AMBARI-13229:
------------------------------------------

This commit caused failures during RU because we were running the hdp-select 
script through the ambari-python-wrap:

{code}
resource_management.core.exceptions.Fail: Execution of 'ambari-python-wrap 
hdp-select set zookeeper-server 2.3.0.0-2545' returned 2. /usr/bin/python2.6: 
can't open file 'hdp-select': [Errno 2] No such file or directory
{code}

Reverting for now...

> When non-supported version of python is set as default, Ambari fails in 
> multiple places
> ---------------------------------------------------------------------------------------
>
>                 Key: AMBARI-13229
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13229
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.2.0
>
>
> We had an issue where the root user's ~/.bashrc file had Python 3 in the PATH.
> We blindly tried to execute tasks and hdp-select blew up with a syntax issue.
> The vast majority of our tasks will fail with python 3 and as users start to
> more heavily adopt newer version of python for data science tasks there is
> risk that they will leak into being used by our user accounts, specifically
> root for root agents, and the non-root user for non-root agents.  
> I would propose that we check the version of python before attempting to start
> the ambari-agent, and fail with a non-zero exit code if we detect a non-
> compliant version.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to