hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zs...@apache.org
Subject svn commit: r729074 - in /hadoop/hive/trunk: CHANGES.txt bin/ext/lineage.sh
Date Tue, 23 Dec 2008 19:32:04 GMT
Author: zshao
Date: Tue Dec 23 11:32:03 2008
New Revision: 729074

URL: http://svn.apache.org/viewvc?rev=729074&view=rev
Log:
HIVE-148. Extend bin/hive to include the lineage tool. (Suresh Antony via zshao)

Added:
    hadoop/hive/trunk/bin/ext/lineage.sh
Modified:
    hadoop/hive/trunk/CHANGES.txt

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=729074&r1=729073&r2=729074&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Tue Dec 23 11:32:03 2008
@@ -6,6 +6,9 @@
 
   NEW FEATURES
 
+    HIVE-148. Extend bin/hive to include the lineage tool.
+    (Suresh Antony via zshao)
+
     HIVE-147. Add a tool for extracting lineage info from hive sql.
     (Suresh Antony via zshao)
 

Added: hadoop/hive/trunk/bin/ext/lineage.sh
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/bin/ext/lineage.sh?rev=729074&view=auto
==============================================================================
--- hadoop/hive/trunk/bin/ext/lineage.sh (added)
+++ hadoop/hive/trunk/bin/ext/lineage.sh Tue Dec 23 11:32:03 2008
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+THISSERVICE=lineage
+export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} "
+
+lineage () {
+  CLASS=org.apache.hadoop.hive.ql.tools.LineageInfo
+
+  # cli specific code
+  if [ ! -f "${HIVE_LIB}/hive_exec.jar" ]; then
+    echo "Missing Hive exec Jar"
+    exit 3;
+  fi
+  exec $HADOOP jar ${HIVE_LIB}/hive_exec.jar $CLASS  "$@"
+}
+
+lineage_help () {
+  echo "usage ./hive 'hql' "
+} 
+



Mime
View raw message