Experimental Physics and Industrial Control System
|
Hi Julian,
I think you are right, your problem lies probably in the settings you mentioned. Advertising kafka as localhost, will only work if you are running everything from within the same container
or maybe have both kafka and zookeeper on the same container and run the create topic from the host machine. I found a lot of setups for kafka inside docker use two listeners: One for inside the docker network for inter broker communication + zookeeper, and
one bound to your host to communicate to the outside.
I found settings this up quite painful. Now, I have a docker compose that has been working well for me. It uses the wurstmeister kafka and zookeeper images. I disentangled it from the
rest of my mess and put it here:
https://gitlab.helmholtz-berlin.de/a2324/phoebus-alarm-docker. Maybe it is helpful to you or you might even use it as it. If you have any problems with that, I am happy to help.
Regards,
Malte
Von: Tech-talk <tech-talk-bounces at aps.anl.gov> Im Auftrag von
Larregui, Julian via Tech-talk
Gesendet: Mittwoch, 1. Juni 2022 20:20
An: tech-talk at aps.anl.gov
Betreff: Alarm-Server within a container
As the subject says I'm trying to get the alarm-server working with phoebus.
I've already built the image and created the container. I can run zookeeper-server-start and kafka-server-start just fine.
The issue becomes when trying to create a topic. Usually it is met with this error:
Error while executing topic command : Timed out waiting for a node assignment. Call: createTopics
[2022-06-01 17:51:09,207] ERROR org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: createTopics
(kafka.admin.TopicCommand$)
My assumption is incorrectly setting up the server.properties file, but unsure what to set it at.
listeners=PLAINTEXT://localhost:9092
advertised.listeners=PLAINTEXT://localhost:9092
zookeeper.connect=localhost:2181
Any advice would be welcomed.
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
14109 Berlin
Deutschland
|
- References:
- Alarm-Server within a container Larregui, Julian via Tech-talk
- Navigate by Date:
- Prev:
Monitoring sscan record fields. [SEC=OFFICIAL] STARRITT, Andrew via Tech-talk
- Next:
stream feature which similar wireshark 网易邮件中心 via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
<2022>
2023
2024
- Navigate by Thread:
- Prev:
Re: Alarm-Server within a container Jörn Dreyer via Tech-talk
- Next:
Strange memory leak with ADAravis Abdalla Ahmad via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
<2022>
2023
2024
|
ANJ, 14 Sep 2022 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|