jaeger: No such host for jaeger-collector when trying to run jaeger-agent.
Hi, I am trying to deploy the individual components of Jaeger on my machine. I am using Cassandra as a storage.
What I am trying to do is to run cassandra and initialize the schema. After doing so, I am running the jaeger collector using the following command.
docker run --rm --link cassandra:cassandra -e SPAN_STORAGE_TYPE=cassandra -p14267:14267 -p14268:14268 -p9411:9411 -e CASSANDRA_SERVERS=cassandra jaegertracing/jaeger-collector
After doing so, I wanted to run Jaeger Agent so it can start collecting traces. However when I run jaeger-agent using the following command:
docker run --rm -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp -p5778:5778/tcp jaegertracing/jaeger-agent --collector.host-port=jaeger-collector:14268
It gives me an error saying “no such host”, but my jaeger collector is running on the port 14268.
Could someone please help me with this issue?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 23 (10 by maintainers)
You are not wiring Docker networking namespace correctly.
you need to use this name
jaeger-collectorwhen starting the collector Docker container and also pass--linkoption to the agent to be able to recognize that name (similar to how you pass Cassandra name to the collector).