5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-06 06:12:26 +08:00

SQOOP-952 Create job function requires uppercased type name

(Jarek Jarcec Cecho via Abhijeet Gaikwad)
This commit is contained in:
Abhijeet Gaikwad 2013-03-16 08:59:01 +05:30
parent 57d4d3aa02
commit 3b8e8d15d7

View File

@ -76,7 +76,7 @@ private void createJob(Long connectionId, String type) throws IOException {
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();