Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-26096

Fix Ranger script file to python3

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • ambari-server
    • None

    Description

      The script file for the Ranger is not using python3 declaration. Modify Ranger script file  to python3.

      cmd  >>>  grep "/usr/bin/env python" ambari-server/src/* -rn

      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/alerts/alert_ranger_admin_passwd_check.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/scripts/params.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/scripts/ranger_admin.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/scripts/ranger_service.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/scripts/ranger_tagsync.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/scripts/ranger_usersync.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/scripts/setup_ranger_xml.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/scripts/status_params.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/package/scripts/upgrade.py:2:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/kms.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/kms_server.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/kms_service.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/params.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/service_check.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/status_params.py:1:#!/usr/bin/env python
      src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/upgrade.py:1:#!/usr/bin/env python

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              muxijun 穆喜军
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m