integrate ofSerial to get data from Spark