---
title: "kafka ClosedChannelException "
author: "e_e"
date: "2016-08-30T10:10:50Z"
tags: []
categories: ["互联网"]
slug: "kafka-closedchannelexception"
draft: false
lastmod: "2016-08-30T10:10:50Z"
id: 2321581
url: "https://e-e.iteye.com/blog/2321581"
---

kafka ClosedChannelException 

 

本人遇到的这个异常，是由于当前消费端服务器没有配置zk和kafka的主机名。

在 /etc/hosts 里配置上zk和kakfa的主机名就不好报错了