Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 3.0
-
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.