Author: jdere
Date: Fri Sep 19 00:14:20 2014
New Revision: 1626108

URL: http://svn.apache.org/r1626108
Log:
HIVE-8146: Test TestTempletonUtils.testFindContainingJar failing (Jason Dere, 
reviewed by Sushanth Sowmyan)

Modified:
    
hive/trunk/hcatalog/webhcat/svr/src/test/java/org/apache/hive/hcatalog/templeton/tool/TestTempletonUtils.java

Modified: 
hive/trunk/hcatalog/webhcat/svr/src/test/java/org/apache/hive/hcatalog/templeton/tool/TestTempletonUtils.java
URL: 
http://svn.apache.org/viewvc/hive/trunk/hcatalog/webhcat/svr/src/test/java/org/apache/hive/hcatalog/templeton/tool/TestTempletonUtils.java?rev=1626108&r1=1626107&r2=1626108&view=diff
==============================================================================
--- 
hive/trunk/hcatalog/webhcat/svr/src/test/java/org/apache/hive/hcatalog/templeton/tool/TestTempletonUtils.java
 (original)
+++ 
hive/trunk/hcatalog/webhcat/svr/src/test/java/org/apache/hive/hcatalog/templeton/tool/TestTempletonUtils.java
 Fri Sep 19 00:14:20 2014
@@ -24,6 +24,7 @@ import java.net.URISyntaxException;
 import java.io.IOException;
 
 import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.hive.shims.HadoopShimsSecure;
 import org.apache.hadoop.hive.shims.ShimLoader;
 import org.apache.hadoop.util.StringUtils;
@@ -314,9 +315,9 @@ public class TestTempletonUtils {
 
   @Test
   public void testFindContainingJar() throws Exception {
-    String result = TempletonUtils.findContainingJar(ShimLoader.class, 
".*hive-shims.*");
+    String result = TempletonUtils.findContainingJar(Configuration.class, 
".*hadoop.*\\.jar.*");
     Assert.assertNotNull(result);
-    result = TempletonUtils.findContainingJar(HadoopShimsSecure.class, 
".*hive-shims.*");
+    result = TempletonUtils.findContainingJar(FileSystem.class, 
".*hadoop.*\\.jar.*");
     Assert.assertNotNull(result);
     result = TempletonUtils.findContainingJar(HadoopShimsSecure.class, 
".*unknownjar.*");
     Assert.assertNull(result);


Reply via email to