hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject [06/38] hive git commit: HIVE-14672: Add timestamps to startup message in hive scripts (Naveen Gangam via Yongzhi Chen)
Date Thu, 08 Sep 2016 01:52:26 GMT
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 <ychena@apache.org>
Authored: Thu Sep 1 16:47:59 2016 -0400
Committer: Yongzhi Chen <ychena@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"
+}


Mime
View raw message