Low level interation of Spark and Kafka