Multiple store commands does not work with Hadoop23

git-svn-id: https://svn.apache.org/repos/asf/incubator/hcatalog/trunk@1384070 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 4c64015..f2e1ed8 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -107,6 +107,8 @@
   OPTIMIZATIONS
 
   BUG FIXES
+  HCAT-499 Multiple store commands does not work with Hadoop23 (rohinip via avandana)
+
   HCAT-501 HBase storage handler tests failing in trunk (traviscrawford)
 
   HCAT-498 TestNotificationListener failing in trunk (traviscrawford)
diff --git a/src/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java b/src/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java
index 8e692dc..336a3f2 100644
--- a/src/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java
+++ b/src/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java
@@ -106,6 +106,8 @@
     @Override
     public void commitTask(TaskAttemptContext context) throws IOException {
         if (!dynamicPartitioningUsed) {
+	     //See HCATALOG-499
+            FileOutputFormatContainer.setWorkOutputPath(context);
             getBaseOutputCommitter().commitTask(HCatMapRedUtil.createTaskAttemptContext(context));
         }
     }