sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhij...@apache.org
Subject git commit: SQOOP-952 Create job function requires uppercased type name
Date Sat, 16 Mar 2013 03:31:55 GMT
Updated Branches:
  refs/heads/sqoop2 57d4d3aa0 -> 3b8e8d15d


SQOOP-952 Create job function requires uppercased type name

(Jarek Jarcec Cecho via Abhijeet Gaikwad)


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

Branch: refs/heads/sqoop2
Commit: 3b8e8d15d78c9361a53b58caeaae4a8ef6729209
Parents: 57d4d3a
Author: Abhijeet Gaikwad <abhijeet@apache.org>
Authored: Sat Mar 16 08:59:01 2013 +0530
Committer: Abhijeet Gaikwad <abhijeet@apache.org>
Committed: Sat Mar 16 08:59:01 2013 +0530

----------------------------------------------------------------------
 .../sqoop/client/shell/CreateJobFunction.java      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/3b8e8d15/client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java
----------------------------------------------------------------------
diff --git a/client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java b/client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java
index 4fc2a43..f5155d5 100644
--- a/client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java
+++ b/client/src/main/java/org/apache/sqoop/client/shell/CreateJobFunction.java
@@ -76,7 +76,7 @@ public class CreateJobFunction extends  SqoopFunction {
     printlnResource(Constants.RES_CREATE_CREATING_JOB, connectionId);
 
     ConsoleReader reader = new ConsoleReader();
-    MJob job = client.newJob(connectionId, MJob.Type.valueOf(type));
+    MJob job = client.newJob(connectionId, MJob.Type.valueOf(type.toUpperCase()));
 
     ResourceBundle connectorBundle = client.getResourceBundle(job.getConnectorId());
     ResourceBundle frameworkBundle = client.getFrameworkResourceBundle();


Mime
View raw message