Connecting Apache Spark with different data stores