Using Apache Spark for Intelligent Services