title: How to get number of cores used in current job?
body: <p><code>SparkContext</code> has <code>getExecutorMemoryStatus</code> method. But it's for memory status of an Executor. </p>
  
  <p>Is there any way how to get <code>core</code> status? I use Spark Standalone Cluster.</p>