Home > OS >  Execute a job only when the previous has finished
Execute a job only when the previous has finished

Time:01-21

I have a bash script which has a sqoop exec and after it three impala commands. I want to run it but only when the previous execution has finished. Is this possible to be done in cronjob or in oozie ?

CodePudding user response:

I assume you are in a linux environment so you should be able to use the run-one command ( ubuntu run-one ) in conjunction with you bash script in a crontab.

e.g.

* * * * * cd /path/to/your/script && run-one ./your-script.sh

If not available you should be able to install if with your package manager

  •  Tags:  
  • Related