- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to resolve `java.net.BindException: Address already in use` error while accesing kafka connect in Apache kafka ?
- Labels:
-
Apache Kafka
Created ‎06-05-2018 09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When trying to use kafka connect using following command :
bin
/connect-standalone
.sh config
/connect-standalone
.properties config
/connect-file-source
.properties config
/connect-file-sink
.properties
It throws a error as
`WARN FAILED http_8083@773e2eb5{HTTP/1.1}{0.0.0.0:8083}: java.net.BindException: Address already in use (org.eclipse.jetty.util.component.AbstractLifeCycle:212)`
and finally ends with the line `INFO Kafka Connect stopped`
How can I change my Kafka-Connect port from 8083 to other port ?
Created ‎06-05-2018 02:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Rahul Kumar You can change the port by adding:
rest.port=<port>
To the config/connect-standalone.properties
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created ‎06-05-2018 01:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @Rahul Kumar!
You can change this in connect-standalone.properties
Should have a property called rest.port 🙂
or if you're planning to use kafka connect in the cluster mode, you should find this parameter in connect-distributed worker.properties
Hope this helps!
Created ‎06-05-2018 02:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Rahul Kumar You can change the port by adding:
rest.port=<port>
To the config/connect-standalone.properties
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created ‎06-07-2018 11:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
its working Thank you experts @Felix Albani and @Vinicius Higa Murakami
Created ‎06-07-2018 02:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good to know @Rahul Kumar!
I already used in cluster mode and it's quite good as well.
So keep going on this! It's an interesting feature from kafka
PS: I'm not an expert yet haha, just a humble guy trying to help xD
Let us know if you have more questions! 🙂
Created ‎06-07-2018 03:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Vinicius I m right now at a beginner stage of learning kafka. Just running a single instance on my local system ...havn't thought of working on clusters. But It is nice to get in touch with u and enhance my knowledge.
Thanks once again 🙂
