测试时报Connection to node 2 could not be established. Broker may not be available.

hbase消费者测试时报Connection to node 2 could not be established. Broker may not be available

kafka集成flume连接消费者时报Connection to node 2 could not be established. Broker may not be available.这个错误

 这其实是一个 很简单的错误,在kafka文件中将你的host.name的地址修改成你的ip即可

修改前:

修改后:

这个地址改成你当前的IP地址后,重新启动kafka,问题解决。

注意:如果是在集群环境中,可以分别把这个改成你自己的IP地址即可。  

     这虽说是个小问题,但是朋友们在开发时一定不能忽视。

你可能感兴趣的:(测试时报Connection to node 2 could not be established. Broker may not be available.)