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 to...@apache.org on 2012/11/27 20:21:44 UTC
svn commit: r1414374 - in /incubator/hcatalog/branches/branch-0.4:
CHANGES.txt src/test/e2e/hcatalog/drivers/TestDriverHCat.pm
Author: toffer
Date: Tue Nov 27 20:21:43 2012
New Revision: 1414374
URL: http://svn.apache.org/viewvc?rev=1414374&view=rev
Log:
HCAT-534 HCat_Drop_Table_3 dfs mkdir failing on hadoop23 (cdrome via toffer)
Modified:
incubator/hcatalog/branches/branch-0.4/CHANGES.txt
incubator/hcatalog/branches/branch-0.4/src/test/e2e/hcatalog/drivers/TestDriverHCat.pm
Modified: incubator/hcatalog/branches/branch-0.4/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.4/CHANGES.txt?rev=1414374&r1=1414373&r2=1414374&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.4/CHANGES.txt (original)
+++ incubator/hcatalog/branches/branch-0.4/CHANGES.txt Tue Nov 27 20:21:43 2012
@@ -69,6 +69,8 @@ Trunk (unreleased changes)
OPTIMIZATIONS
BUG FIXES
+ HCAT-534 HCat_Drop_Table_3 dfs mkdir failing on hadoop23 (cdrome via toffer)
+
HCAT-513 Data Store onto HCatalog table fails for dynamic partitioning as the temporary directory gets deleted by the completed map tasks (amalakar via toffer)
HCAT-490 HCatStorer() throws error when the same partition key is present in records in more than one tasks running as part of the same job (amalakar via toffer)
Modified: incubator/hcatalog/branches/branch-0.4/src/test/e2e/hcatalog/drivers/TestDriverHCat.pm
URL: http://svn.apache.org/viewvc/incubator/hcatalog/branches/branch-0.4/src/test/e2e/hcatalog/drivers/TestDriverHCat.pm?rev=1414374&r1=1414373&r2=1414374&view=diff
==============================================================================
--- incubator/hcatalog/branches/branch-0.4/src/test/e2e/hcatalog/drivers/TestDriverHCat.pm (original)
+++ incubator/hcatalog/branches/branch-0.4/src/test/e2e/hcatalog/drivers/TestDriverHCat.pm Tue Nov 27 20:21:43 2012
@@ -133,6 +133,13 @@ sub runHCatCmdLine
$outfiles[0] = $testCmd->{'thisResultsPath'} . "/" . $testCmd->{'group'} .
"_" . $testCmd->{'num'} . ".0.out";
+ # Append -p to dfs -mkdir to work with Hadoop23.
+ if ($ENV{'HCAT_HADOOPVERSION'} eq "23") {
+ if ($hcatCmd =~ /\bdfs -mkdir/) {
+ $hcatCmd=~s/\bdfs\s+-mkdir\s+(-p\s+)?/dfs -mkdir -p /g;
+ }
+ }
+
open(FH, "> $hcatfiles[0]") or
die "Unable to open file $hcatfiles[0] to write SQL script, $ERRNO\n";
print FH $hcatCmd . "\n";