java - launch and submit job spark -


i try "run" spark jobs width java application, searching, found following 2 methods: clientsarguments , sparklauncher.

could explain me difference between two? difference between launch , submit job/application spark? thank you.

sparklauncher wrapper library spark-submit, coverts sparklauncher code spark-submit script , trigger jobs.

the mechanism same spark-submit script, if @ source code of sparklauncher, uses processbuilder construct shell.

if want use sparklauncher, need specify $java_home, $sprak_home , other essential parameters. there limitation sparklauncher, machine sparklauncher runs must have $java_home , $spark_home(spark library) used sparklauncher locating script , related dependencies. soft of impossible cloud environment cloudfoundry etc.

you assume sparklauncher equals spark-submit script, choose client or master, local or yarn mode.

clientsarguments class yarn script, works yarn-mode.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -