You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Charming Wu (Jira)" <ji...@apache.org> on 2023/02/23 11:46:00 UTC

[jira] [Updated] (AMBARI-25861) modify tag "python2" to "python3"

     [ https://issues.apache.org/jira/browse/AMBARI-25861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charming Wu updated AMBARI-25861:
---------------------------------
    Description: 
In ambari 2.7.5, there are many script still using "python2/python2.6" as the default python version to execute python scripts.

!image-2023-02-23-19-45-42-227.png!

 

So In order to adapt change for python3, I would like to make some script modification:
 # change "/usr/lib/python2.6" to "/usr/lib/python3.9"
 # change "/usr/bin/python2" to "/usr/bin/python3"

This modification brings about 70 modification points, but I worry about the compatibility problem, since not all these file can retrieve env veariable to get the actual python version(for Ex: the JSON file).

What is you suggestion? Welcome to Discuss here.

  was:
In ambari 2.7.5, there are many script still using "python2/python2.6" as the default python version to execute python scripts.

!image-2023-02-23-19-41-46-266.png!

So In order to adapt change for python3, I would like to make some script modification:
 # change "/usr/lib/python2.6" to "/usr/lib/python3.9"
 # change "/usr/bin/python2" to "/usr/bin/python3"

This modification brings about 70 modification points, but I worry about the compatibility problem, since not all these file can retrieve env veariable to get the actual python version(for Ex: the JSON file).

What is you suggestion? Welcome to Discuss here.


> modify tag "python2" to "python3" 
> ----------------------------------
>
>                 Key: AMBARI-25861
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25861
>             Project: Ambari
>          Issue Type: Sub-task
>          Components: ambari-server
>    Affects Versions: 2.7.5
>         Environment: Ambari 2.7.5
> OS: OpenEuler-22.0
> Python: 3.9.9
>            Reporter: Charming Wu
>            Priority: Major
>
> In ambari 2.7.5, there are many script still using "python2/python2.6" as the default python version to execute python scripts.
> !image-2023-02-23-19-45-42-227.png!
>  
> So In order to adapt change for python3, I would like to make some script modification:
>  # change "/usr/lib/python2.6" to "/usr/lib/python3.9"
>  # change "/usr/bin/python2" to "/usr/bin/python3"
> This modification brings about 70 modification points, but I worry about the compatibility problem, since not all these file can retrieve env veariable to get the actual python version(for Ex: the JSON file).
> What is you suggestion? Welcome to Discuss here.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org