refractor sparkngin and kafka configuration