After upgrading to CDH 5.4, we are unable to run imapal-shell from within a shell script.
Here is the script:
impala-shell -q "invalidate metadata"
Here is the error message and we notice the same irrespective of the directory "PYTHON_EGG_CACHE" env variable is set to:
The Python egg cache directory is currently set to:
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
Is there a change in the way the env variable need to be set?