Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DE256200CAF for ; Thu, 22 Jun 2017 20:36:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DC879160BF1; Thu, 22 Jun 2017 18:36:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 29F06160BD3 for ; Thu, 22 Jun 2017 20:36:39 +0200 (CEST) Received: (qmail 98239 invoked by uid 500); 22 Jun 2017 18:36:38 -0000 Mailing-List: contact commits-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list commits@impala.incubator.apache.org Received: (qmail 98228 invoked by uid 99); 22 Jun 2017 18:36:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 18:36:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 01564192068 for ; Thu, 22 Jun 2017 18:36:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.221 X-Spam-Level: X-Spam-Status: No, score=-4.221 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id VVvqQZyh8XPo for ; Thu, 22 Jun 2017 18:36:36 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 3F9265FBE5 for ; Thu, 22 Jun 2017 18:36:35 +0000 (UTC) Received: (qmail 98219 invoked by uid 99); 22 Jun 2017 18:36:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 18:36:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5DE6DDFF15; Thu, 22 Jun 2017 18:36:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kwho@apache.org To: commits@impala.incubator.apache.org Date: Thu, 22 Jun 2017 18:36:34 -0000 Message-Id: <25c0472f0f6441359c3b2f8302be1100@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/4] incubator-impala git commit: IMPALA-5517: Allow IMPALA_LOGS_DIR to be overridden archived-at: Thu, 22 Jun 2017 18:36:40 -0000 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 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 Authored: Thu Jun 15 10:30:11 2017 -0700 Committer: Impala Public Jenkins 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"