sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheol...@apache.org
Subject git commit: SQOOP-818: Missing method setConnManager(Lcom/cloudera/sqoop/manager/ConnManager; )V in ExportJobContContext breaks MS SQL Connector
Date Tue, 08 Jan 2013 18:16:17 GMT
Updated Branches:
  refs/heads/trunk b02ddc397 -> 82c117c4f


SQOOP-818: Missing method setConnManager(Lcom/cloudera/sqoop/manager/ConnManager;)V in
ExportJobContContext breaks MS SQL Connector

(Jarek Jarcec Cecho via Cheolsoo Park)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/82c117c4
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/82c117c4
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/82c117c4

Branch: refs/heads/trunk
Commit: 82c117c4f1411f158d211af660abc77924cc23f6
Parents: b02ddc3
Author: Cheolsoo Park <cheolsoo@apache.org>
Authored: Tue Jan 8 10:15:35 2013 -0800
Committer: Cheolsoo Park <cheolsoo@apache.org>
Committed: Tue Jan 8 10:15:35 2013 -0800

----------------------------------------------------------------------
 .../cloudera/sqoop/manager/ExportJobContext.java   |    4 ++++
 .../sqoop/mapreduce/ExportOutputFormat.java        |   13 +++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/82c117c4/src/java/com/cloudera/sqoop/manager/ExportJobContext.java
----------------------------------------------------------------------
diff --git a/src/java/com/cloudera/sqoop/manager/ExportJobContext.java b/src/java/com/cloudera/sqoop/manager/ExportJobContext.java
index 552f346..cad63a1 100644
--- a/src/java/com/cloudera/sqoop/manager/ExportJobContext.java
+++ b/src/java/com/cloudera/sqoop/manager/ExportJobContext.java
@@ -31,6 +31,10 @@ public class ExportJobContext
     super(table, jar, opts);
   }
 
+  public void setConnManager(ConnManager mgr) {
+    super.setConnManager(mgr);
+  }
+
   public ConnManager getConnManager() {
     return (ConnManager)super.getConnManager();
   }

http://git-wip-us.apache.org/repos/asf/sqoop/blob/82c117c4/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java
----------------------------------------------------------------------
diff --git a/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java b/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java
index dba4a49..48c352b 100644
--- a/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java
+++ b/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java
@@ -19,10 +19,23 @@
 package com.cloudera.sqoop.mapreduce;
 
 import com.cloudera.sqoop.lib.SqoopRecord;
+import org.apache.hadoop.mapreduce.TaskAttemptContext;
+
+import java.sql.SQLException;
 
 /**
  * @deprecated Moving to use org.apache.sqoop namespace.
  */
 public class ExportOutputFormat<K extends SqoopRecord, V>
     extends org.apache.sqoop.mapreduce.ExportOutputFormat<K, V> {
+
+  /** {@inheritDoc}. **/
+  public class ExportRecordWriter extends
+    org.apache.sqoop.mapreduce.ExportOutputFormat<K, V>.ExportRecordWriter {
+
+    public ExportRecordWriter(TaskAttemptContext context)
+      throws ClassNotFoundException, SQLException {
+      super(context);
+    }
+  }
 }


Mime
View raw message