Because the zookeeper is not up. As a result, it cannot be obtained when the configured bean is obtained.