You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by yc...@apache.org on 2016/09/01 20:52:13 UTC
hive git commit: HIVE-14672: Add timestamps to startup message in
hive scripts (Naveen Gangam via Yongzhi Chen)
Repository: hive
Updated Branches:
refs/heads/master fae4e7d1d -> 91ec8b2d0
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/master
Commit: 91ec8b2d099e298fe6e37e412f2c785dcb2bf01e
Parents: fae4e7d
Author: Yongzhi Chen <yc...@apache.org>
Authored: Thu Sep 1 16:47:59 2016 -0400
Committer: Yongzhi Chen <yc...@apache.org>
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"
+}