You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2013/09/04 08:13:25 UTC

svn commit: r1519916 - /hive/trunk/hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/TestE2EScenarios.java

Author: thejas
Date: Wed Sep  4 06:13:25 2013
New Revision: 1519916

URL: http://svn.apache.org/r1519916
Log:
HIVE-5197: TestE2EScenerios.createTaskAttempt should use MapRedUtil (Brock Noland via Thejas Nair)

Modified:
    hive/trunk/hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/TestE2EScenarios.java

Modified: hive/trunk/hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/TestE2EScenarios.java
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/TestE2EScenarios.java?rev=1519916&r1=1519915&r2=1519916&view=diff
==============================================================================
--- hive/trunk/hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/TestE2EScenarios.java (original)
+++ hive/trunk/hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hcatalog/pig/TestE2EScenarios.java Wed Sep  4 06:13:25 2013
@@ -48,6 +48,7 @@ import org.apache.hcatalog.data.schema.H
 import org.apache.hcatalog.mapreduce.HCatInputFormat;
 import org.apache.hcatalog.mapreduce.HCatOutputFormat;
 import org.apache.hcatalog.mapreduce.OutputJobInfo;
+import org.apache.hcatalog.mapreduce.HCatMapRedUtil;
 import org.apache.pig.ExecType;
 import org.apache.pig.PigServer;
 import org.apache.pig.data.Tuple;
@@ -193,7 +194,7 @@ public class TestE2EScenarios extends Te
         TaskAttemptID taskId = new TaskAttemptID();
         conf.setInt("mapred.task.partition", taskId.getId());
         conf.set("mapred.task.id", "attempt__0000_r_000000_" + taskId.getId());
-        TaskAttemptContext rtaskContext = new TaskAttemptContext(conf , taskId );
+        TaskAttemptContext rtaskContext = HCatMapRedUtil.createTaskAttemptContext(conf , taskId);
         return rtaskContext;
     }