XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.5
    • None
    • ambari-server
    • None
    • Ambari:Ambari-2.7.5

      OS:        OpenEuler-22.03

      Python: Python 3.9.9

    Description

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

      for Ex:

           ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py: 162:

                 ams_monitor_dir = "/usr/lib/python2.6/site-packages"......

       

      So In order to adapt change for python3, I would like to make some script modification:

      1. change "/usr/lib/python2.6" to "/usr/lib/python3.9"
      2. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Charming603473 Charming Wu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: