As far as I know this is not something that Ambari or SQOOP allow for.
What you could do to achieve your goal is one of the two:
- Prepare sh scripts and refer to your jdbc string as a variable
- Prepare an Oozie Worklfow and pass the jdbc string as a variable
At that point you might have an external tool (e.g. Jenkins) maintaining a list of jdbc strings and taking the responsibility to specify the desidred one.
In solution 1, Jenkins should SSH to the node, set the variable to the JDBC string, launch the sh.
In solution 2, Jenkins should use Oozie API to start the workflow while specifying the desired variable value.
Solution 2 is much better than 1, since it relies on a distributed, highly available service (Oozie).
Regards