as titled, how do I know which version of spark has been installed in the CentOS?
The current system has installed cdh5.1.0.
You can use spark-submit command: spark-submit --version
spark-submit --version