From e2d3b85676d5ca0fcc6d55e9b077c019ca8e0afe Mon Sep 17 00:00:00 2001 From: "David Z. Chen" Date: Thu, 29 May 2014 12:27:08 -0700 Subject: [PATCH] HIVE-7110: Fix TestHCatPartitionPublish test failure by adding hive-shims to HCatalog core test dependencies and setting fs.pfile.impl to test setup. --- hcatalog/core/pom.xml | 6 ++++++ .../apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java | 2 ++ 2 files changed, 8 insertions(+) diff --git a/hcatalog/core/pom.xml b/hcatalog/core/pom.xml index b5e85cd..d959299 100644 --- a/hcatalog/core/pom.xml +++ b/hcatalog/core/pom.xml @@ -60,6 +60,12 @@ hive-exec ${project.version} + + org.apache.hive + hive-shims + ${project.version} + test + com.google.guava diff --git a/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java b/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java index be7134f..9f00afe 100644 --- a/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java +++ b/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java @@ -84,11 +84,13 @@ public static File handleWorkDir() throws IOException { workDir.mkdirs(); return workDir; } + @BeforeClass public static void setup() throws Exception { File workDir = handleWorkDir(); conf.set("yarn.scheduler.capacity.root.queues", "default"); conf.set("yarn.scheduler.capacity.root.default.capacity", "100"); + conf.set("fs.pfile.impl", "org.apache.hadoop.fs.ProxyLocalFileSystem"); fs = FileSystem.get(conf); System.setProperty("hadoop.log.dir", new File(workDir, "/logs").getAbsolutePath()); -- 1.8.3.4 (Apple Git-47)