Support Questions
Find answers, ask questions, and share your expertise
Announcements
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

Highlighted

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
1 REPLY 1

Re: Variables inside Sqoop Job

Contributor

Hi Padmanabhan, this link will give you some insight, you can use shell script/local os variables to do this - https://community.hortonworks.com/questions/64361/how-to-implement-and-deploying-our-own-sqoop-frame...

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