as titled, how do I know which version of spark has been installed in the CentOS?
The current system has installed cdh5.1.0.
If you use Spark-Shell, it appears in the banner at the start.
Programatically, SparkContext.version can be used.
SparkContext.version