You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by on 2019/06/03 14:00:39 UTC

Can't see topics anymore after upgrade from 1.1 to 2.2.1

Hi,

Just upgraded my Kafka test environment from 1.1 to 2.2.1.
What I did:
1) Untarred Scala 2.11-Kafka 2.2.1 file in /opt directory (BTW: OS = CentOS 7.6) which creates directory kafka_2.11-2.2.1
2) Removed symbolic link "kafka" from old environment kafka_2.11-1.1.0
3) Created a new symbolic link "kafka" to the new directory kafka_2.11-2.2.1
4) Started zookeeper (no errors)
5) Added inter.broker.protocol.version=1.1 to server.config
6) Started kafka (no errors)
7) From the bin directory: ./kafka-topics.sh --bootstrap-server localhost:9092 --list

This produces an empty list (no output).

Stopping kafka and kafka-zookeeper, reverting the symbolic link to the old environment and starting kafka-zookeeper and kafka again, followed by ./kafka-topics.sh --zookeeper localhost:2181 --list
gives me all my topics again.

What am I doing wrong ?

Re: Can't see topics anymore after upgrade from 1.1 to 2.2.1

Posted by .
Thanks,

Issue is solved.
I forgot to copy over all files from the zookeeper dataDir directory to the new 2.2.1 environment.

Cheers !

On 2019/06/03 16:54:47, "M. Manna" <ma...@gmail.com> wrote: 
> Zookeeper hosted topics are often not displayed if you use
> bootstrap-server; aka new configs.
> 
> Try using zookeeper. You should still see your topics.
> 
> Thanks,
> 
> On Mon, 3 Jun 2019 at 17:12, j.lammerts@chello.nl <j....@chello.nl>
> wrote:
> 
> > Hi,
> >
> > Just upgraded my Kafka test environment from 1.1 to 2.2.1.
> > What I did:
> > 1) Untarred Scala 2.11-Kafka 2.2.1 file in /opt directory (BTW: OS =
> > CentOS 7.6) which creates directory kafka_2.11-2.2.1
> > 2) Removed symbolic link "kafka" from old environment kafka_2.11-1.1.0
> > 3) Created a new symbolic link "kafka" to the new directory
> > kafka_2.11-2.2.1
> > 4) Started zookeeper (no errors)
> > 5) Added inter.broker.protocol.version=1.1 to server.config
> > 6) Started kafka (no errors)
> > 7) From the bin directory: ./kafka-topics.sh --bootstrap-server
> > localhost:9092 --list
> >
> > This produces an empty list (no output).
> >
> > Stopping kafka and kafka-zookeeper, reverting the symbolic link to the old
> > environment and starting kafka-zookeeper and kafka again, followed by
> > ./kafka-topics.sh --zookeeper localhost:2181 --list
> > gives me all my topics again.
> >
> > What am I doing wrong ?
> >
> 

Re: Can't see topics anymore after upgrade from 1.1 to 2.2.1

Posted by "M. Manna" <ma...@gmail.com>.
Zookeeper hosted topics are often not displayed if you use
bootstrap-server; aka new configs.

Try using zookeeper. You should still see your topics.

Thanks,

On Mon, 3 Jun 2019 at 17:12, j.lammerts@chello.nl <j....@chello.nl>
wrote:

> Hi,
>
> Just upgraded my Kafka test environment from 1.1 to 2.2.1.
> What I did:
> 1) Untarred Scala 2.11-Kafka 2.2.1 file in /opt directory (BTW: OS =
> CentOS 7.6) which creates directory kafka_2.11-2.2.1
> 2) Removed symbolic link "kafka" from old environment kafka_2.11-1.1.0
> 3) Created a new symbolic link "kafka" to the new directory
> kafka_2.11-2.2.1
> 4) Started zookeeper (no errors)
> 5) Added inter.broker.protocol.version=1.1 to server.config
> 6) Started kafka (no errors)
> 7) From the bin directory: ./kafka-topics.sh --bootstrap-server
> localhost:9092 --list
>
> This produces an empty list (no output).
>
> Stopping kafka and kafka-zookeeper, reverting the symbolic link to the old
> environment and starting kafka-zookeeper and kafka again, followed by
> ./kafka-topics.sh --zookeeper localhost:2181 --list
> gives me all my topics again.
>
> What am I doing wrong ?
>