confluentinc / cp-demo

Confluent Platform Demo including Apache Kafka, ksqlDB, Control Center, Schema Registry, Security, Schema Linking, and Cluster Linking
Apache License 2.0
36 stars 322 forks source link

cp-demo not working #154

Closed elefthei closed 4 years ago

elefthei commented 4 years ago

Following this page https://docs.confluent.io/current/tutorials/cp-demo/docs/index.html?utm_source=github&utm_medium=demo&utm_campaign=ch.cp-demo_type.community_content.cp-demo After ./scripts/start.sh After the script finishes and I fail to get a valid response from localhost:9021

ybyzek commented 4 years ago

@elefthei what are the status of the Docker containers and errors in the logs?

elefthei commented 4 years ago

Here is the output of docker ps

Lefs-MacBook-Air:cover lef$ docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                         PORTS                                                        NAMES
424aa3bcb29f        confluentinc/cp-ksql-cli:5.4.0                        "/bin/sh"                8 minutes ago       Up 8 minutes                                                                                ksql-cli
2a80b50e26fb        docker.elastic.co/kibana/kibana:5.5.2                 "/bin/sh -c /usr/loc…"   8 minutes ago       Up 8 minutes                   0.0.0.0:5601->5601/tcp                                       kibana
4a6e8ebb6361        docker.elastic.co/elasticsearch/elasticsearch:5.6.0   "/bin/bash bin/es-do…"   8 minutes ago       Up 8 minutes                   0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp               elasticsearch
fc9bc9a55a1f        confluentinc/cp-ksql-server:5.4.0                     "/etc/confluent/dock…"   8 minutes ago       Restarting (1) 3 seconds ago                                                                ksql-server
b6be6ff72a6d        confluentinc/cp-server-connect:5.4.0                  "bash -c 'sleep 10 &…"   8 minutes ago       Up About a minute              0.0.0.0:8083->8083/tcp, 9092/tcp                             connect
b955c5fe6e2d        confluentinc/cp-kafka-rest:5.4.0                      "/etc/confluent/dock…"   8 minutes ago       Up 48 seconds                  8082/tcp, 0.0.0.0:8086->8086/tcp                             restproxy
5d4be2b63313        cnfldemos/cp-demo-kstreams:0.0.2                      "/app/start.sh"          8 minutes ago       Up 8 minutes                   9092/tcp                                                     streams-demo
faf765f851c4        confluentinc/cp-enterprise-control-center:5.4.0       "/etc/confluent/dock…"   8 minutes ago       Up 8 minutes                   0.0.0.0:9021-9022->9021-9022/tcp                             control-center
08cfe43e2592        confluentinc/cp-schema-registry:5.4.0                 "/etc/confluent/dock…"   8 minutes ago       Up 48 seconds                  8081/tcp, 0.0.0.0:8085->8085/tcp                             schemaregistry
01be2a12bade        confluentinc/cp-server:5.4.0                          "bash -c 'if [ ! -f …"   8 minutes ago       Up 8 minutes                   0.0.0.0:9091->9091/tcp, 0.0.0.0:29091->29091/tcp, 9092/tcp   kafka1
bf2be771eab5        confluentinc/cp-server:5.4.0                          "bash -c 'if [ ! -f …"   8 minutes ago       Up 8 minutes                   0.0.0.0:9092->9092/tcp, 0.0.0.0:29092->29092/tcp             kafka2
0b68ed99fb68        confluentinc/cp-zookeeper:5.4.0                       "/etc/confluent/dock…"   8 minutes ago       Up 8 minutes                   2888/tcp, 0.0.0.0:2181->2181/tcp, 3888/tcp                   zookeeper
ddfd88698018        confluentinc/cp-enterprise-replicator:5.4.0           "sleep infinity"         8 minutes ago       Up 8 minutes                   8083/tcp, 9092/tcp                                           replicator-for-jar-transfer

And attached is some of log outputs cp-demo.log

ybyzek commented 4 years ago

@elefthei I just ran this demo without problem.

  1. What's your OS?
  2. What's shown in the console output?
  3. Looks like issue with the broker at first?
kafka1                         | [2020-01-22 04:13:51,817] WARN [KafkaServer id=1] Retrying controlled shutdown after the previous attempt failed... (kafka.server.KafkaServer)
elefthei commented 4 years ago

MacOS-10.14. How strict is the 8gb memory requirement? My MacBook Air has 4gb

On Wed, Jan 22, 2020 at 8:10 PM Yeva Byzek notifications@github.com wrote:

@elefthei https://github.com/elefthei I just ran this demo without problem.

  1. What's your OS?
  2. What's shown in the console output?
  3. Looks like issue with the broker at first?

kafka1 | [2020-01-22 04:13:51,817] WARN [KafkaServer id=1] Retrying controlled shutdown after the previous attempt failed... (kafka.server.KafkaServer)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/confluentinc/cp-demo/issues/154?email_source=notifications&email_token=AAF3HLDHZNWLKSZM7KSE5ILQ7DU7PA5CNFSM4KJ7OTQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJVVOFQ#issuecomment-577459990, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3HLEAH5RMR74LE4RP5XDQ7DU7PANCNFSM4KJ7OTQA .

-- Lefteris Ioannidis, MIT 2014

ybyzek commented 4 years ago

@elefthei unpredictable behavior with 4GB, please try on another machine with 8GB.

elefthei commented 4 years ago

Thank you!