check spark version from pyspark code example Example: how to check spark version spark-submit --version