how to check if spark exisits in mac code example Example: how to check spark version spark-submit --version