Use public method sparkContext instead of protected sc in streaming examples