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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | AW: Alarm-Server within a container |
From: | "Gotz, Malte via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Larregui, Julian" <larregui1 at llnl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Fri, 3 Jun 2022 11:22:59 +0000 |
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 Hello, 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. currently: listeners=PLAINTEXT://localhost:9092 advertised.listeners=PLAINTEXT://localhost:9092 zookeeper.connect=localhost:2181 Any advice would be welcomed.
Thank you for your time, 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 |