Increase Executors while running spark application junit test case in IntelliJIdea.

Answered

Hi Team,

 

I need to run Junit Test cases for Spark Scala Application in IntelliJ Idea.

When i run test case by default one executor is created.

My Local Machine has 4 core processor. Can i increase the executors from 1 to 4.

If yes than how?

 

Thanks

Deepak

3 comments
Comment actions Permalink

Hello,

You can control the number of VM created during the test run with "fork mode" option (it helps to create a separate virtual machine for each method or class), please see its more detailed description (https://www.jetbrains.com/help/idea/run-debug-configuration-junit.html#configTab). Does it solve your issue? 

0
Comment actions Permalink

Hi Olga, I didn't understand this concept. Thanks for your help. Problem is solved at the moment. 

0
Comment actions Permalink

Thank you for confirming it works for you!

0

Please sign in to leave a comment.