Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Done
-
Impala 2.11.0
-
None
-
ghx-label-4
Description
bootstrap_system.sh checks if ~/Impala is an existing directory, and if it isn't then clones Impala to that path. Once this is done this script jumps to ~/Impala and starts a build.
In case someone clones the Impala sources to a custom directory, sources the Impala configs there and then invokes bootstrap_development.sh or bootstrap_system.sh then in the background the build is actually performed in ~/Impala instead of the custom dir. Taking into account that Impala is not sourced from ~/Impala, but the build is done there, this can result some strange build failures.
My proposal is to move the following code behind a command line parameter that is off by default:
# If there is no Impala git repo, get one now if ! [[ -d ~/Impala ]] then time -p git clone https://git-wip-us.apache.org/repos/asf/impala.git ~/Impala fi cd ~/Impala