报错:
For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.
解决:
原因是在集群环境下建立topic的时候,没有建立分区和副本,所以报了这个错。重新修改topic信息,然后就可以了。
记录下。