Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7817

impala_config.sh appends to various env variables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 3.0
    • Impala 3.3.0
    • Infrastructure
    • None
    • ghx-label-8

    Description

      If one repeatedly sources "bin/impala_config.sh", the script does not "set" environment variables, it frequently appends to them.  If one sources hits files repeatedly variables such as CLASSPATH keep growing and growing.

      This is maybe a nuisance if CDH_BUILD_NUMBER hasn't changed, but if it has changed then the results can be unpredictable – because the resulting CLASSPATH will have the old CDH build number path included as well as the new one.

      The proper solution (other than not depending on environment variables as much) is to write an "undo.sh" file of some sort that can be used to undo what impala_config.sh does.  Subsequently impala_config.sh can run an undo.sh to clean an environment before setting up a new one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mostrows Michal Ostrowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: