Author: gates
Date: Wed Mar 14 23:28:08 2012
New Revision: 1300784
URL: http://svn.apache.org/viewvc?rev=1300784&view=rev
Log:
HCATALOG-305 hcat shell is not properly picking up the hcat jar
Modified:
incubator/hcatalog/trunk/CHANGES.txt
incubator/hcatalog/trunk/bin/hcat
Modified: incubator/hcatalog/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/hcatalog/trunk/CHANGES.txt?rev=1300784&r1=1300783&r2=1300784&view=diff
==============================================================================
--- incubator/hcatalog/trunk/CHANGES.txt (original)
+++ incubator/hcatalog/trunk/CHANGES.txt Wed Mar 14 23:28:08 2012
@@ -83,6 +83,8 @@ Release 0.4.0 - Unreleased
OPTIMIZATIONS
BUG FIXES
+ HCAT-305 hcat shell is not properly picking up the hcat jar (gates)
+
HCAT-307 NOTICE and LICENSE file need updated to add new jars and move
copyright date to 2012 (gates)
HCAT-300 A number of files lack Apache license headers (gates)
Modified: incubator/hcatalog/trunk/bin/hcat
URL:
http://svn.apache.org/viewvc/incubator/hcatalog/trunk/bin/hcat?rev=1300784&r1=1300783&r2=1300784&view=diff
==============================================================================
--- incubator/hcatalog/trunk/bin/hcat (original)
+++ incubator/hcatalog/trunk/bin/hcat Wed Mar 14 23:28:08 2012
@@ -59,7 +59,11 @@ done
# Find our hcatalog jar
shopt -s extglob
-HCAT_JAR=$HCAT_PREFIX/share/hcatalog/hcatalog-!(*server-extensions*).jar
+if (( `ls -1 $HCAT_PREFIX/share/hcatalog/hcatalog-[0-9]*.jar | wc -l` > 1 )) ;
then
+ echo "Error: found more than one hcatalog jar in
$HCAT_PREFIX/share/hcatalog"
+ exit 1
+fi
+HCAT_JAR=`ls $HCAT_PREFIX/share/hcatalog/hcatalog-[0-9]*.jar`
# Add all of the other jars to our classpath
for jar in $HCAT_PREFIX/share/hcatalog/lib/*.jar ; do