Specify options for the jvm launched by pyspark

前端 未结 1 1706
不知归路
不知归路 2021-01-21 11:10

How /where are the jvm options used by the pyspark script when launching the jvm it connects to specified?

I am specifically interested in specifying jvm debugging opti

相关标签:
1条回答
  • 2021-01-21 12:09

    pyspark uses the bin/spark-class script to start the client that you see running in your terminal / console. You can just append whatever options necessary to JAVA_OPTS:

    JAVA_OPTS="$JAVA_OPTS -Xmx=2g -Xms=1g -agentlib:jdwp=transport=dt_socket,server=y..."
    
    0 讨论(0)
提交回复
热议问题