Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Variables inside Sqoop Job


Variables inside Sqoop Job

Can we use variables inside sqoop commands while creating sqoop jobs and passing the values as parameters to the job.

For example something like below

	sqoop --create myjob -- import  --connect jdbc:xxx.. --username $username --password $Password  .. 

And pass the arguments while executing the job.

sqoop job -exec myjob username password

Re: Variables inside Sqoop Job


Hi Padmanabhan, this link will give you some insight, you can use shell script/local os variables to do this -

Don't have an account?
Coming from Hortonworks? Activate your account here