You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by hy...@apache.org on 2014/10/31 04:46:50 UTC

git commit: TAJO-1133: Add 'bin/tajo version' command. (Jihun Kang via hyunsik)

Repository: tajo
Updated Branches:
  refs/heads/master 4b0f6befd -> 0319b1f0a


TAJO-1133: Add 'bin/tajo version' command. (Jihun Kang via hyunsik)

Closes #219


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/0319b1f0
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/0319b1f0
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/0319b1f0

Branch: refs/heads/master
Commit: 0319b1f0a71a65821408623f28f39ea4ec419bc9
Parents: 4b0f6be
Author: Hyunsik Choi <hy...@apache.org>
Authored: Thu Oct 30 20:46:30 2014 -0700
Committer: Hyunsik Choi <hy...@apache.org>
Committed: Thu Oct 30 20:46:30 2014 -0700

----------------------------------------------------------------------
 CHANGES                     | 2 ++
 tajo-dist/src/main/bin/tajo | 5 +++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/0319b1f0/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 9b30787..46a335b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,8 @@ Release 0.9.1 - unreleased
 
   IMPROVEMENT
 
+    TAJO-1133: Add 'bin/tajo version' command. (Jihun Kang via hyunsik)
+
     TAJO-1145: Add 'bin/tajo --help' command. (Jihun Kang via hyunsik)
 
     TAJO-1114: Improve ConfVars (SessionVar) to take a validator 

http://git-wip-us.apache.org/repos/asf/tajo/blob/0319b1f0/tajo-dist/src/main/bin/tajo
----------------------------------------------------------------------
diff --git a/tajo-dist/src/main/bin/tajo b/tajo-dist/src/main/bin/tajo
index a1bc74a..03203d2 100755
--- a/tajo-dist/src/main/bin/tajo
+++ b/tajo-dist/src/main/bin/tajo
@@ -72,6 +72,7 @@ function print_usage() {
   echo "  getconf              print tajo configuration"
   echo "  jar <jar>            run a jar file"
   echo "  benchmark            run the benchmark driver"
+  echo "  version              print the version"
   echo " or"
   echo "  CLASSNAME            run the class named CLASSNAME"
   echo "Most commands print help when invoked w/o parameters."
@@ -381,6 +382,10 @@ elif [ "$COMMAND" = "dump" ] ; then
   CLASS='org.apache.tajo.client.TajoDump'
   TAJO_ROOT_LOGGER_APPENDER="${TAJO_ROOT_LOGGER_APPENDER:-NullAppender}"
   TAJO_OPTS="$TAJO_OPTS $TAJO_DUMP_OPTS"
+elif [ "$COMMAND" = "version" ] ; then
+  CLASS='org.apache.tajo.util.VersionInfo'
+  TAJO_ROOT_LOGGER_APPENDER="${TAJO_ROOT_LOGGER_APPENDER:-NullAppender}"
+  TAJO_OPTS="$TAJO_OPTS $TAJO_CLI_OPTS"
 else
   CLASS=$COMMAND
 fi