how to check spark version

C++
spark-submit --version
Source

Also in C++: