Open maniac1978 opened 1 day ago
Pinging code owners:
exporter/clickhouse: @hanjm @dmitryax @Frapschen @SpencerTorres
See Adding Labels via Comments if you do not have permissions to add labels yourself.
It looks like I was in a hurry to claim that the database is being created with a standalone clickhouse server. With version 0.114.0, the database is not created at all, even with a standalone clickhouse server.
The database was successfully created with version otelcol 0.95. But I had to go to the latest version, because 0.95 when connecting to the clickhouse cluster, gave an error "* '' has invalid keys: table_engine".
And I did not check the creation of the database on version 0.114.0 with standalone clickhouse. Now I tried to connect it to a standalone clickhouse server and got the same error: collector server run finished with error: cannot start pipelines: create database: code: 81, message: Database otel does not exist.
So it was in this issue: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23664
I ran the otelcol version 0.95 with the same configuration and the database was created on standalone clickhouse server.
Hey! Thanks for submitting this. Could be a duplicate of #35713, check that thread and see if you can provide similar debugging info and I can look into it
Component(s)
exporter/clickhouse
What happened?
Description
OTel collector can't start with clickhouse exporter when clickhouse cluster in config and the database doesn't exist. OTel collector starts successfully if there is a standalone clickhouse server in the configuration, the database is successfully created. If clickhouse cluster: Error: cannot start pipelines: create database: code: 81, message: Database otel does not exist collector server run finished with error: cannot start pipelines: create database: code: 81, message: Database otel does not exist
Steps to Reproduce
Describe the connection to the clickhouse cluster in the exporter.
Expected Result
Successful database creation
Actual Result
OTel collector can't start with error: Database otel does not exist
Collector version
0.114.0
Environment information
Environment
OS: Ubuntu 22.04.5 LTS Compiler(if manually compiled): go version go1.22.1 linux/amd64
OpenTelemetry Collector configuration
Log output
Additional context
I tried to connect clickhouse clusters with versions: ClickHouse server version 23.8.9.54 (official build) with Zookeeper. ClickHouse server version 24.8.7.41 (official build) with ClickHouseKeeper.