How to get the number of workers(executors) in PySpark?
<p>I need to use this parameter, so how can I get the number of workers?
Like in Scala, I can call <code>sc.getExecutorMemoryStatus</code> to get the available number of workers. But in PySpark, it seems there's no API exposed to get this number.</p>