How to schedule my Apache Spark application to run everyday at 00.30 AM(night) in IBM Bluemix? -
hi & ibm bluemix team, using ibm analytics apache spark service in ibm bluemix. have developed apache spark application , want run everyday @ 00.30 in night. how schedule apache spark application run everyday @ 00.30 am(night) in ibm bluemix?
you can use scheduling tool (crontab on linux) allow run spark-submit.sh script machine @ specific time.(in case 00:30am)
a typical crontab entry this
30 0 * * * /<your-directory-where-spraksubmit.sh>/spark-submit.sh --vcap vcap.json --deploy-mode cluster --class org.apache.spark.examples.sparkpi --master https://169.54.219.20 spark-examples-1.6.0-hadoop2.6.0.jar
refrence ibm spark-submit.sh https://console.ng.bluemix.net/docs/services/analyticsforapachespark/index-gentopic3.html
crontab:-
http://kvz.io/blog/2007/07/29/schedule-tasks-on-linux-using-crontab/
again can use tools of desire.
thanks, charles.
Comments
Post a Comment