Closed championswimmer closed 2 months ago
Is it possible that you are trying to launch Metabase with the driver as a ZIP archive (and not JAR as Metabase expects)?
Assuming you have clickhouse.metabase-driver.jar
(not zip), users.xml
, and config.xml
in the same directory as the following docker-compose.yml
:
version: '3.8'
services:
clickhouse:
image: 'clickhouse/clickhouse-server:24.1-alpine'
container_name: docker-test-metabase-clickhouse-server
ports:
- '8123:8123'
- '9000:9000'
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- './config.xml:/etc/clickhouse-server/config.xml'
- './users.xml:/etc/clickhouse-server/users.xml'
metabase:
image: metabase/metabase:v0.48.1
container_name: docker-test-metabase-with-clickhouse-driver
environment:
'MB_HTTP_TIMEOUT': '5000'
'JAVA_TIMEZONE': 'UTC'
ports:
- '3000:3000'
volumes:
- './clickhouse.metabase-driver.jar:/plugins/clickhouse.jar'
(or just use ClickHouse started elsewhere, then remove it from this compose file), it works:
> docker logs docker-test-metabase-with-clickhouse-driver | grep clickhouse
2024-02-18 18:56:57,629 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :clickhouse...
2024-02-18 18:56:57,629 INFO driver.impl :: Registered driver :clickhouse (parents: [:sql-jdbc]) 🚚
If you need sample config.xml
or users.xml
for ClickHouse, the ones that are used for the driver tests are here: https://github.com/ClickHouse/metabase-clickhouse-driver/tree/master/.docker/clickhouse/single_node
Unable to start this with docker
Versions
Here are the logs when it starts. Somehow it is not able to extract the zip it seems