Project: springxd
Issue XD-3034: Sqoop command should not require jdbc parameters
Based on the OOTB sqoop.xml definition on GitHub we are required to provide the jdbc.url, jdbc.username and jdbc.password as a parameter definition. {code}

${command}	${args}	jdbc.url=${url}	jdbc.username=${username}	jdbc.password=${password}	fs.defaultFS=${fsUri}	... {code} This is causing a problem if we define the the sqoop connection parameters within the args list. We are using the --password-file option in the args list and need to specify the connection info via the --connect option with the --username within the args list. Our Job definition is: {code} job create bdl_lookup --definition "bdl-load --command=import --args='--connect=jdbc:oracle:thin:@:1821/ --username= --password-file=/user/workspace/secure-files/gdw.password --table=MASTERDATA.W_LOOKUP_D --target-dir=/

${command}	${args}	fs.defaultFS=${fsUri}	... {code} Custom module deploys fine but get a We get a NullPointerException in the container logs: {code} 2015-05-07 11:46:04,450 1.2.0.M1 ERROR inbound.job:bdl_lookup-redis:queue-inbound-channel-adapter1 step.AbstractStep - Encountered an error executing step sqoopTask in job bdl_lookup java.lang.NullPointerException org.springframework.xd.sqoop.SqoopTasklet.createCommand(SqoopTasklet.java:91) org.springframework.batch.step.tasklet.x.AbstractProcessBuilderTasklet.execute(AbstractProcessBuilderTasklet.java:107) org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406) org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330) org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271) org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:77) {code}
Story points: 2