HCATALOG-563 hcat script should look in the correct dir for the storage handler jars (arpitgupta via khorgath)


git-svn-id: https://svn.apache.org/repos/asf/incubator/hcatalog/trunk@1417722 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 6602043..936d54a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -147,6 +147,8 @@
   OPTIMIZATIONS
 
   BUG FIXES
+  HCAT-563 hcat script should look in the correct dir for the storage handler jars (arpitgupta via khorgath)
+
   HCAT-559 Fix trivial build warnings in HCat trunk (mithunr via avandana)
 
   HCAT-555 hcat script should look for hcatalog-core jar and add HCAT_PREFIX/conf as a config location that is checked. (arpitgupta via traviscrawford)
diff --git a/bin/hcat b/bin/hcat
index 9e968fa..5cc4903 100644
--- a/bin/hcat
+++ b/bin/hcat
@@ -106,7 +106,7 @@
 HCAT_JAR=`ls $HCAT_PREFIX/share/hcatalog/hcatalog-core-[0-9]*.jar`
 
 # Find the storage-handler jars.
-for jar in ${HCAT_PREFIX}/share/hcatalog/lib/*.jar ; do
+for jar in ${HCAT_PREFIX}/share/hcatalog/storage-handlers/*/lib/*.jar ; do
 	HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$jar
 done