After lunching docker-compose file I've this problem issue. In case I try to see the dashborad on loclahost:5601 there's a response ("Kibana server is not ready yet"). What's the real problem? I'm able to query information on ElasticSearch. I report below the code the docker-compose file.
kibana | {"type":"log","@timestamp":"2021-04-30T12:41:43+00:00","tags":["debug","metrics","ops"],"pid":7,"ecs":{"version":"1.7.0"},"event":{"kind":"metric","category":["process","host"],"type":"info"},"process":{"uptime":98,"memory":{"heap":{"usedInBytes":131746896}},"eventLoopDelay":0.8419680000515655},"host":{"os":{"load":{"1m":9.51,"5m":4.49,"15m":1.96}}},"message":"memory: 125.6MB uptime: 0:01:38 load: [9.51,4.49,1.96] delay: 0.842"}
kibana | {"type":"log","@timestamp":"2021-04-30T12:41:45+00:00","tags":["debug","elasticsearch","query","data"],"pid":7,"message":"[ConnectionError]: connect ECONNREFUSED 127.0.0.1:9200"}
I report below the docker-compose file.
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper:3.4.6
ports:
- "2181:2181"
kafka:
build: .
ports:
- "9092:9092"
expose:
- "9093"
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "streaming_stream:1:1,batch_stream:1,1,output_batch:1,1,output_streaming:1,1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
jobmanager:
image: pyflink/playgrounds:1.10.0
volumes:
- ./examples:/opt/examples
hostname: "jobmanager"
expose:
- "6123"
ports:
- "8088:8088"
command: jobmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager:
image: pyflink/playgrounds:1.10.0
volumes:
- ./examples:/opt/examples
expose:
- "6121"
- "6122"
depends_on:
- jobmanager
command: taskmanager
links:
- jobmanager:jobmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 2
elasticsearch:
restart: always
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.4.0
container_name: elasticsearch
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- vibhuviesdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- es-net
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- ES_JAVA_OPTS:"-Xms1g-Xmx1g"
kibana:
image: docker.elastic.co/kibana/kibana:7.12.0
mem_limit: 5096m
mem_reservation: 4096m
container_name: kibana
restart: always
networks:
- es-net
environment:
ELASTICSEARCH_URL: "http://localhost:9200"
ELASTICSEARCH_HOSTS: "http://localhost:9200"
elasticsearch.ssl.verificationMode: none
LOGGING_VERBOSE: "true"
ports:
- 5601:5601
volumes:
vibhuviesdata:
driver: local
networks:
es-net:
driver: bridge