You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hcatalog-commits@incubator.apache.org by ga...@apache.org on 2012/04/12 18:16:30 UTC

svn commit: r1325420 - in /incubator/hcatalog/trunk: CHANGES.txt src/java/org/apache/hcatalog/common/HCatUtil.java

Author: gates
Date: Thu Apr 12 18:16:30 2012
New Revision: 1325420

URL: http://svn.apache.org/viewvc?rev=1325420&view=rev
Log:
HCATALOG-365 HCatUtil.getStorageHandler should set the configuration

Modified:
    incubator/hcatalog/trunk/CHANGES.txt
    incubator/hcatalog/trunk/src/java/org/apache/hcatalog/common/HCatUtil.java

Modified: incubator/hcatalog/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/CHANGES.txt?rev=1325420&r1=1325419&r2=1325420&view=diff
==============================================================================
--- incubator/hcatalog/trunk/CHANGES.txt (original)
+++ incubator/hcatalog/trunk/CHANGES.txt Thu Apr 12 18:16:30 2012
@@ -110,6 +110,8 @@ Release 0.4.0 - Unreleased
   OPTIMIZATIONS
 
   BUG FIXES
+  HCAT-365 HCatUtil.getStorageHandler should set the configuration (traviscrawford via gates)
+
   HCAT-371 A few javadoc warnings have crept into HCat (gates)
 
   HCAT-320 Remove filtering of table properties which are not prefix with "hcat." (rohini via gates)

Modified: incubator/hcatalog/trunk/src/java/org/apache/hcatalog/common/HCatUtil.java
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/src/java/org/apache/hcatalog/common/HCatUtil.java?rev=1325420&r1=1325419&r2=1325420&view=diff
==============================================================================
--- incubator/hcatalog/trunk/src/java/org/apache/hcatalog/common/HCatUtil.java (original)
+++ incubator/hcatalog/trunk/src/java/org/apache/hcatalog/common/HCatUtil.java Thu Apr 12 18:16:30 2012
@@ -509,9 +509,10 @@ public class HCatUtil {
 
         if ((storageHandler == null) || (storageHandler.equals(FosterStorageHandler.class.getName()))){
             try {
-                return new FosterStorageHandler(inputFormat,
-                                                outputFormat,
-                                                serDe);
+                FosterStorageHandler fosterStorageHandler =
+                    new FosterStorageHandler(inputFormat, outputFormat, serDe);
+                fosterStorageHandler.setConf(conf);
+                return fosterStorageHandler;
             } catch (ClassNotFoundException e) {
                 throw new IOException("Failed to load "
                     + "foster storage handler",e);