IMPALA-5517: Allow IMPALA_LOGS_DIR to be overridden Tested by exporting a different IMPALA_LOGS_DIR path, then confirming that it was not changed by sourcing impala-config.sh.
Change-Id: I4028813bd4f53815139225abd57845bb304ae3e4 Reviewed-on: http://gerrit.cloudera.org:8080/7197 Reviewed-by: David Knupp <[email protected]> Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/29d2587b Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/29d2587b Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/29d2587b Branch: refs/heads/master Commit: 29d2587bd657bd11f6ef0347abd8198676c206d7 Parents: 4a11f0b Author: David Knupp <[email protected]> Authored: Thu Jun 15 10:30:11 2017 -0700 Committer: Impala Public Jenkins <[email protected]> Committed: Thu Jun 22 01:25:15 2017 +0000 ---------------------------------------------------------------------- bin/impala-config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/29d2587b/bin/impala-config.sh ---------------------------------------------------------------------- diff --git a/bin/impala-config.sh b/bin/impala-config.sh index 5525206..d92e0ed 100755 --- a/bin/impala-config.sh +++ b/bin/impala-config.sh @@ -321,7 +321,8 @@ elif [ "${TARGET_FILESYSTEM}" != "hdfs" ]; then fi # Directories where local cluster logs will go when running tests or loading data -export IMPALA_LOGS_DIR="${IMPALA_HOME}/logs" +DEFAULT_LOGS_DIR="${IMPALA_HOME}/logs" # override by setting IMPALA_LOGS_DIR env var +export IMPALA_LOGS_DIR="${IMPALA_LOGS_DIR:-$DEFAULT_LOGS_DIR}" export IMPALA_CLUSTER_LOGS_DIR="${IMPALA_LOGS_DIR}/cluster" export IMPALA_DATA_LOADING_LOGS_DIR="${IMPALA_LOGS_DIR}/data_loading" export IMPALA_DATA_LOADING_SQL_DIR="${IMPALA_DATA_LOADING_LOGS_DIR}/sql"
