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 B05B3200B88 for ; Thu, 8 Sep 2016 03:52:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AEF3A160AD9; Thu, 8 Sep 2016 01:52:24 +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 F19CB160AC1 for ; Thu, 8 Sep 2016 03:52:23 +0200 (CEST) Received: (qmail 21230 invoked by uid 500); 8 Sep 2016 01:52:22 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 20840 invoked by uid 99); 8 Sep 2016 01:52:22 -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, 08 Sep 2016 01:52:22 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C7838EEE18; Thu, 8 Sep 2016 01:52:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sershe@apache.org To: commits@hive.apache.org Date: Thu, 08 Sep 2016 01:52:26 -0000 Message-Id: In-Reply-To: <1da688ac42f5452f8fc89deb1ac0662d@git.apache.org> References: <1da688ac42f5452f8fc89deb1ac0662d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [06/38] hive git commit: HIVE-14672: Add timestamps to startup message in hive scripts (Naveen Gangam via Yongzhi Chen) archived-at: Thu, 08 Sep 2016 01:52:24 -0000 HIVE-14672: Add timestamps to startup message in hive scripts (Naveen Gangam via Yongzhi Chen) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/91ec8b2d Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/91ec8b2d Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/91ec8b2d Branch: refs/heads/hive-14535 Commit: 91ec8b2d099e298fe6e37e412f2c785dcb2bf01e Parents: fae4e7d Author: Yongzhi Chen Authored: Thu Sep 1 16:47:59 2016 -0400 Committer: Yongzhi Chen Committed: Thu Sep 1 16:47:59 2016 -0400 ---------------------------------------------------------------------- bin/ext/hiveserver2.sh | 5 +++++ bin/ext/metastore.sh | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/91ec8b2d/bin/ext/hiveserver2.sh ---------------------------------------------------------------------- diff --git a/bin/ext/hiveserver2.sh b/bin/ext/hiveserver2.sh index 1f02bb4..c17452c 100644 --- a/bin/ext/hiveserver2.sh +++ b/bin/ext/hiveserver2.sh @@ -17,6 +17,7 @@ THISSERVICE=hiveserver2 export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} " hiveserver2() { + echo "$(timestamp): Starting HiveServer2" CLASS=org.apache.hive.service.server.HiveServer2 if $cygwin; then HIVE_LIB=`cygpath -w "$HIVE_LIB"` @@ -30,3 +31,7 @@ hiveserver2_help() { hiveserver2 -H } +timestamp() +{ + date +"%Y-%m-%d %T" +} http://git-wip-us.apache.org/repos/asf/hive/blob/91ec8b2d/bin/ext/metastore.sh ---------------------------------------------------------------------- diff --git a/bin/ext/metastore.sh b/bin/ext/metastore.sh index 095e6e2..8001e87 100644 --- a/bin/ext/metastore.sh +++ b/bin/ext/metastore.sh @@ -17,7 +17,7 @@ THISSERVICE=metastore export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} " metastore() { - echo "Starting Hive Metastore Server" + echo "$(timestamp): Starting Hive Metastore Server" CLASS=org.apache.hadoop.hive.metastore.HiveMetaStore if $cygwin; then HIVE_LIB=`cygpath -w "$HIVE_LIB"` @@ -34,3 +34,7 @@ metastore_help() { metastore -h } +timestamp() +{ + date +"%Y-%m-%d %T" +}