我必须在 h2o 中导入 mysql 表。我可以在本地 h2o 中执行此操作。我需要在 docker 容器中执行此操作。
如何在 docker compose 或 docker 文件中使用 mysql JDBC(mysql 连接器 jar)?h2o 只为 driverlessAI 提供了环境变量。h2o 开源的方法或环境变量是什么?我在下面使用 docker compose 文件,但它无法选择DRIVERLESS_AI_CONFIG_FILE
环境变量。
version: '3.1'
services:
h2o:
image: h2oai/h2o-open-source-k8s:3.32.0.3
container_name: secure-h2o
ports:
- 6041:54321
environment:
- DRIVERLESS_AI_CONFIG_FILE: "/home/renosecure/docker-container-mount/vol-h2o/tmp/config.toml"
- JARPATH: "/home/renosecure/docker-container-mount/vol-h2o/tmp/mysql-connector-java-8.0.23.jar"
volumes:
- /home/renosecure/docker-container-mount/vol-h2o/data:/data
- /home/renosecure/docker-container-mount/vol-h2o/log:/log
- /home/renosecure/docker-container-mount/vol-h2o/license:/license
- /home/renosecure/docker-container-mount/vol-h2o/tmp:/tmp