• 1. Error while executing topic command : org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment.
  • [2019-11-05 08:56:44,341] ERROR java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment.
     
  • [2019-11-05 08:53:08,510] INFO Got user-level KeeperException when processing sessionid:0x1008c4ad71e0001 type:multi cxid:0x28 zxid:0x2f txntype:-1 reqpath:n/a aborting remaining multi ops. Error Path:/admin/preferred_replica_election Error:KeeperErrorCode = NoNode for /admin/preferred_replica_election (org.apache.zookeeper.server.PrepRequestProcessor)
     
  • Give up sending metadata request since no node is available

以上几种情况,用以下方法解决

编辑config/server.properties文件,加下面配置

listeners=PLAINTEXT://192.168.1.168:9092