update dep for kafka module, use Try and avoid java class cast