Specify options for the jvm launched by pyspark

夙愿已清 提交于 2019-12-20 03:01: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 options e.g.

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

Thanks.


回答1:


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..."


来源:https://stackoverflow.com/questions/29478112/specify-options-for-the-jvm-launched-by-pyspark

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!