Could you see if this is the case:

https://cwiki.apache.org/confluence/display/KAFKA/FAQ#FAQ-Whycan%27tmyconsumers/producersconnecttothebrokers
?

On Fri, Oct 24, 2014 at 11:35 AM, Sameer Yami <sy...@ailive.net> wrote:

> Hi,
>
> We have a Kafka / Zookeeper test setup on a single EC2 machine. The
> host.name is the private ip address and the advertised.host.name is the
> public address in server.properties.
>
> We are trying to publish from outside EC2 using the public ip of the EC2
> machine but get this error on the client side -
> No partition metadata for topic test due to
> kafka.common.LeaderNotAvailableException}] for topic [test]: class
> kafka.common.LeaderNotAvailableException
>
> The zookeeper has the public ip stored in /brokers/ids/0.
> We have tried multiple combinations but it works ONLY when the advertised
> host name is not used and the client is internal to EC2.
>
> Please let me know what the problem could be.
>
> thanks
> Sameer
>



-- 
-- Guozhang

Reply via email to