Inject SparkContext to Pipeline.