Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

kafka + Exception: about Address already in use but without to view the port name

avatar

hi all

we run the following command on kafka machine in order to view/print the topics names

we can see that its fails on

Caused by: java.net.BindException: Address already in use 

but without to print also the port number

./kafka-topics.sh --zookeeper zookeeper1:2181 --list 
To enable GC log rotation, use -Xloggc:<filename> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=<num_of_files>
where num_of_file > 0
GC log rotation is turned off
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.net.BindException: Address already in use 

any suggestion how to find the port ? that is use

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Michael Bronson

Zookeeper's usually have the same port so I suggest you have a look at the brokers. Please have a look at my response to a similar problem

https://community.hortonworks.com/questions/235766/kafka-socket-server-failed-bind-exception.html?c...

HTH

View solution in original post

1 REPLY 1

avatar
Master Mentor

@Michael Bronson

Zookeeper's usually have the same port so I suggest you have a look at the brokers. Please have a look at my response to a similar problem

https://community.hortonworks.com/questions/235766/kafka-socket-server-failed-bind-exception.html?c...

HTH