-
I am trying to store my jaeger traces in Cassandra. Hence I have this docker compose file: # Jaeger
jaeger:
container_name: moilerplate_jaeger
image: jaegertracing/all-in-one:1.41.0
environment:
- SPAN_STORAGE_TYPE=cassandra
- CASSANDRA_SERVERS=cassandra
- CASSANDRA_KEYSPACE=jaeger_v1_dc1
ports:
- "14250:14250" # Collector gRPC
- "16686:16686" # Web HTTP
networks:
- moilerplate-network
depends_on:
cassandra:
condition: service_healthy
cassandra-schema:
condition: service_completed_successfully
cassandra-schema:
image: jaegertracing/jaeger-cassandra-schema:1.43
container_name: moilerplate_cassandra_schema
environment:
- CASSANDRA_PROTOCOL_VERSION=4
- CASSANDRA_VERSION=4
- CQLSH_HOST=cassandra
- DATACENTER=dc1
- MODE=prod
- REPLICATION_FACTOR=3
networks:
- moilerplate-network
depends_on:
cassandra:
condition: service_healthy
cassandra:
restart: always
image: cassandra:4.0
container_name: moilerplate_cassandra
ports:
- 9042:9042
volumes:
- cassandra-data:/var/lib/cassandra
networks:
- moilerplate-network
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces"]
interval: 1s
retries: 120
timeout: 1s However when I ran it, I got this error message from Is there something that I am missing. Is NOTE: Using Thanks, any help is wonderful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Owh, it turns out that in Cassandra, the datacenter name has to be present/exists. For that, |
Beta Was this translation helpful? Give feedback.
Owh, it turns out that in Cassandra, the datacenter name has to be present/exists. For that,
dc1
data center has to exists in Cassandra. Changing the data center name to bedatacenter1
which by default exists, works perfectly fine.