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/12/31 18:00:10 UTC
svn commit: r1427209 - in /incubator/hcatalog/branches/branch-0.5:
CHANGES.txt
core/src/main/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java
Author: gates
Date: Mon Dec 31 18:00:10 2012
New Revision: 1427209
URL: http://svn.apache.org/viewvc?rev=1427209&view=rev
Log:
HCATALOG-584 Changes in HCAT-538 break Pig stores into non-partitioned tables
Modified:
incubator/hcatalog/branches/branch-0.5/CHANGES.txt
incubator/hcatalog/branches/branch-0.5/core/src/main/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java
Modified: incubator/hcatalog/branches/branch-0.5/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.5/CHANGES.txt?rev=1427209&r1=1427208&r2=1427209&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.5/CHANGES.txt (original)
+++ incubator/hcatalog/branches/branch-0.5/CHANGES.txt Mon Dec 31 18:00:10 2012
@@ -156,6 +156,8 @@ Release 0.5.0 - Unreleased
OPTIMIZATIONS
BUG FIXES
+ HCAT-584 Changes in HCAT-538 break Pig stores into non-partitioned tables (gates)
+
HCAT-576 HCATALOG-527 Broke backward compatibility (gates)
HCAT-567 HCatClient must allow retrieval of multiple partitions using a partial partition spec.(mithun via avandana)
Modified: incubator/hcatalog/branches/branch-0.5/core/src/main/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.5/core/src/main/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java?rev=1427209&r1=1427208&r2=1427209&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.5/core/src/main/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java (original)
+++ incubator/hcatalog/branches/branch-0.5/core/src/main/java/org/apache/hcatalog/mapreduce/FileOutputCommitterContainer.java Mon Dec 31 18:00:10 2012
@@ -420,6 +420,9 @@ class FileOutputCommitterContainer exten
if(LOG.isDebugEnabled()) {
LOG.debug("Moving file: [ " + file + "] to [" + finalOutputPath + "]");
}
+ // Make sure the parent directory exists. It is not an error
+ // to recreate an existing directory
+ fs.mkdirs(finalOutputPath.getParent());
if (!fs.rename(file, finalOutputPath)) {
if (!fs.delete(finalOutputPath, true)) {
throw new HCatException(ErrorType.ERROR_MOVE_FAILED, "Failed to delete existing path " + finalOutputPath);