You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Michal Ostrowski (JIRA)" <ji...@apache.org> on 2018/11/06 16:25:01 UTC

[jira] [Created] (IMPALA-7817) impala_config.sh appends to various env variables

Michal Ostrowski created IMPALA-7817:
----------------------------------------

             Summary: impala_config.sh appends to various env variables
                 Key: IMPALA-7817
                 URL: https://issues.apache.org/jira/browse/IMPALA-7817
             Project: IMPALA
          Issue Type: Bug
          Components: Infrastructure
    Affects Versions: Impala 3.0
            Reporter: Michal Ostrowski


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)