Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33864

How can we submit or initiate multiple spark application with single or few JVM



    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.5
    • None
    • Deploy
    • None
    • Important


      How can we have single JVM or few JVM process submit multiple application to cluster.

      It is observed that each spark-submit opens upto 400 JARS of >1GB size and creates  _spark_conf_XXXX.zip in /tmp  and copy under application specific .staging directory.    When run concurrently for # of JVMs that can be supported in a server is limited and 100% CPU during job submission and  until client java processes start exiting.

      Initially we thought creating zip files and distributing this to hdfs for each application is the source of issue. However reducing the size of zipfile by 50% also we didn't see much difference and indicates the main source of issue is number of JAVA process on client side.

      Direct impact is any submission with concurrency >40 (#of hyperthreaded cores) leads to failure and CPU overload on GW. Tried Livy, however noticed, in the background this solution also does a spark-submit and same problem persists and getting "response code 404" and observe the same CPU overload on server running livy. The concurrency is due to mini-batches over REST and expecting and try to support 2000+ concurrent requests as long as we have the resource to support in the cluster. For this spark-submit is the major bottleneck because of the explained situation. For JARS submission, we have more than one work-around (1.pre-distribute the jars to a specified folder and refer local keyword or 2) stage the JARS in a HDFS location and specify HDFS reference thus no file-copy per application).

      Is there a way to create a service/services that will stay running and submit jobs to cluster. For running application in Client mode make sense to open 400+ jars, however just for sumibtting the application to cluster we could have a simple/lite process that runs as service.





            Unassigned Unassigned
            rbhatta Ramesha Bhatta
            0 Vote for this issue
            6 Start watching this issue