---
title: "kafka 异常ConsumerRebalanceFailedException"
author: "e_e"
date: "2016-08-30T10:10:17Z"
tags: []
categories: ["互联网"]
slug: "kafka-consumerrebalancefailedexception"
draft: false
lastmod: "2016-08-30T10:10:17Z"
id: 2321577
url: "https://e-e.iteye.com/blog/2321577"
---

异常信息：

kafka.common.ConsumerRebalanceFailedException: uat\_admin-pc-1472462879203-b0fd524a can't rebalance after 4 retries

at kafka.consumer.ZookeeperConsumerConnector$ZKRebalancerListener.syncedRebalance(ZookeeperConsumerConnector.scala:633)

at kafka.consumer.ZookeeperConsumerConnector$ZKRebalancerListener$$anon$1.run(ZookeeperConsumerConnector.scala:551)

 

原因：有另外的消费端在监听这些topic。查找并关闭后再启动就可以了。