Initializing spark