Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cassandra timeout #27633

Closed
raavianil opened this issue Oct 11, 2023 · 7 comments
Closed

Cassandra timeout #27633

raavianil opened this issue Oct 11, 2023 · 7 comments
Assignees
Labels
bug Something isn't working exporter/cassandra Stale

Comments

@raavianil
Copy link

Component(s)

exporter/cassandra

Describe the issue you're reporting

Receiving the error when I try to run the custom Otel contributor . Below are the details

Created a builder using

GO111MODULE=on go install go.opentelemetry.io/collector/cmd/builder@latest

used the below config to generate the custom collector

builder-config.yaml

dist:
name: otelcol-custom
description: Local OpenTelemetry Collector binary
output_path: /tmp/dist
exporters:

  • gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/cassandraexporter v0.86.0
  • gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.86.0

receivers:

  • gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.86.0

processors:

  • gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.86.0

builder --config=builder-config.yaml

running the Otel-custom with this configuration
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/cassandraexporter/example/otel-collector-config.yml

Otel-custom --config=otel-collector-config.yaml

This returns the below error

Error: cannot start pipelines : gocql : no response received from Cassandra within timeout period

I am running latest Cassandra docker image in my box

docker run -p 9042:9042 --rm --name cassandra -d cassandra:latest

@raavianil raavianil added the needs triage New item requiring triage label Oct 11, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@raavianil
Copy link
Author

raavianil commented Oct 11, 2023

By the way it created the "otel" key space is my Cassandra cluster
Next time I try to run the program it complains about the key space already existing

Error: cannot start pipelines: Cannot add existing key space "otel"

May be you can set Timeout when creating the cluster

@crobert-1 crobert-1 added the bug Something isn't working label Oct 11, 2023
@emreyalvac
Copy link
Member

I'm working on it..

@raavianil
Copy link
Author

Can you post the updates please ?

@emreyalvac
Copy link
Member

emreyalvac commented Oct 16, 2023

#27681

Try to change timeout

@raavianil

codeboten pushed a commit that referenced this issue Nov 28, 2023
Check keyspace if exist and dynamic timeout for connection

#27633

---------

Co-authored-by: Curtis Robert <crobert@splunk.com>
Co-authored-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Co-authored-by: Alex Boten <aboten@lightstep.com>
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Dec 18, 2023
@crobert-1
Copy link
Member

Resolved by #27681.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/cassandra Stale
Projects
None yet
Development

No branches or pull requests

4 participants