vgallet / workshop-kafka-streams

9 stars 3 forks source link

Erreur lors du docker-compose up #4

Open gdemiollis opened 2 years ago

gdemiollis commented 2 years ago

Bonjour,

Je suis en train d'installer les prérequis pour demain et je rencontre l'erreur suivante lors du docker-compose up.

Savez-vous ce que je peux faire pour la régler? Je suis sur Mac avec la nouvelle puce Apple, je sais pas si ça a un impacte.

Merci d'avance

broker                         | [2022-02-01 22:02:07,587] INFO Starting log cleanup with a period of 300000 ms. (kafka.log.LogManager)
broker                         | [2022-02-01 22:02:07,593] INFO Starting log flusher with a default period of 9223372036854775807 ms. (kafka.log.LogManager)
broker                         | [2022-02-01 22:02:07,609] INFO Starting the log cleaner (kafka.log.LogCleaner)
broker                         | [2022-02-01 22:02:07,757] INFO [kafka-log-cleaner-thread-0]: Starting (kafka.log.LogCleaner)
broker                         | #
broker                         | # A fatal error has been detected by the Java Runtime Environment:
broker                         | #
broker                         | #  SIGSEGV (0xb) at pc=0x000000400bbe79c0, pid=1, tid=0x000000400281e700
broker                         | #
broker                         | # JRE version: OpenJDK Runtime Environment (Zulu 8.38.0.13-CA-linux64) (8.0_212-b04) (build 1.8.0_212-b04)
broker                         | # Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-amd64 compressed oops)
broker                         | # Problematic frame:
broker                         | # J 865 C1 scala.collection.AbstractTraversable.<init>()V (33 bytes) @ 0x000000400bbe79c0 [0x000000400bbe79a0+0x20]
broker                         | #
broker                         | # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
broker                         | #
broker                         | # An error report file with more information is saved as:
broker                         | # //hs_err_pid1.log
broker                         | Compiled method (c1)    8341  959       3       scala.collection.immutable.AbstractMap::<init> (21 bytes)
broker                         |  total in heap  [0x000000400bc19fd0,0x000000400bc1aba8] = 3032
broker                         |  relocation     [0x000000400bc1a0f8,0x000000400bc1a1a0] = 168
broker                         |  main code      [0x000000400bc1a1a0,0x000000400bc1a780] = 1504
broker                         |  stub code      [0x000000400bc1a780,0x000000400bc1a828] = 168
broker                         |  oops           [0x000000400bc1a828,0x000000400bc1a830] = 8
broker                         |  metadata       [0x000000400bc1a830,0x000000400bc1a8a8] = 120
broker                         |  scopes data    [0x000000400bc1a8a8,0x000000400bc1aa80] = 472
broker                         |  scopes pcs     [0x000000400bc1aa80,0x000000400bc1aba0] = 288
broker                         |  dependencies   [0x000000400bc1aba0,0x000000400bc1aba8] = 8
broker                         | #
broker                         | # If you would like to submit a bug report, please visit:
broker                         | #   http://www.azulsystems.com/support/
broker                         | #
broker                         | qemu: uncaught target signal 6 (Aborted) - core dumped
zookeeper                      | [2022-02-01 22:02:26,501] INFO Expiring session 0x100001dec3d0004, timeout of 18000ms exceeded (org.apache.zookeeper.server.ZooKeeperServer)
schema-registry                | [main] INFO org.apache.zookeeper.ZooKeeper - Session: 0x100001dec3d0003 closed
schema-registry                | [main-EventThread] INFO org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x100001dec3d0003
schema-registry                | [main] ERROR io.confluent.admin.utils.cli.KafkaReadyCommand - Error while running kafka-ready.
schema-registry                | org.apache.kafka.common.errors.TimeoutException: Timed out waiting for Kafka to register brokers in Zookeeper. timeout (ms) = 40000
schema-registry exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
[+] Running 5/5
 ⠿ Container schema-registry                Stopped                                                                                                                                                              0.0s
 ⠿ Container create-topics                  Stopped                                                                                                                                                              0.0s
 ⠿ Container workshop-kafka-streams-akhq-1  Stopped                                                                                                                                                             10.3s
 ⠿ Container broker                         Stopped                                                                                                                                                             10.3s
 ⠿ Container zookeeper                      Stopped                                                                                                                                                              0.6s
canceled
guilhemdemiollis@M1MAx-de-Guilhem workshop-kafka-streams % 
vgallet commented 2 years ago

Hello,

l'erreur est assez étrange. Est-ce que cela se produit avec les autres composants? Est-ce que tu peux essayer en utilisant une version supérieure de l'image docker, par exemple : confluentinc/cp-enterprise-kafka:7.0.1-3-ubi8 ?

gdemiollis commented 2 years ago

Salut,

J'ai fait le mvn clean après et quand j'ai relancé le docker-compose up, ça a l'air d'avoir fonctionne.

Le mer. 2 févr. 2022, 08:40, Victor GALLET @.***> a écrit :

Hello,

l'erreur est assez étrange. Est-ce que cela se produit avec les autres composants? Est-ce que tu peux essayer en utilisant une version supérieure de l'image docker, par exemple : docker pull confluentinc/cp-enterprise-kafka:7.0.1-3-ubi8 ?

— Reply to this email directly, view it on GitHub https://github.com/vgallet/workshop-kafka-streams/issues/4#issuecomment-1027662908, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAETU2YJFKWBKLHPO5BQXDTUZDNVRANCNFSM5NKMS6EQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

zarnaud commented 2 years ago

Les images Confluent ne semblent pas compatibles ARM64/M1 : https://github.com/confluentinc/common-docker/issues/117

victor-gallet commented 2 years ago

@zarnaud a crée la branche fix/silicon pour utiliser une autre image docker. Est-ce que tu peux faire le test @gdemiollis stp?

gdemiollis commented 2 years ago

Ça a l'air de fonctionner avec cette branche. Merci