gpt4 book ai didi

docker - 使用docker compose运行Apache NIFI

转载 作者:行者123 更新时间:2023-12-02 18:36:37 27 4
gpt4 key购买 nike

嗨,我曾经尝试使用DockerFile在Docker上运行NIFI Apache,但是却出现了错误,就像图片中附带的一样,DockerFile上是否缺少任何设置?

我的Docker撰写文件

version: '3.5'

services:
nifi:
build:
context: .
dockerfile: Dockerfile
args:
NIFI_VERSION: 1.8.0
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}

ports:
- "8080:8080"
volumes:
- ./config/nifi/conf:/opt/nifi/nifi-current/conf
- ./config/nifi/data:/home/nifi/data/data
- ./config/nifi/script:/home/nifi/data/script
- ./config/nifi/utils:/home/nifi/data/utils

nifi-registry:
build:
context: .
dockerfile: Dockerfile.registry
args:
NIFI-REGISTRY-VERSION: 0.3.0
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}

ports:
- "18080:18080"
volumes:
- ./config/nifi-registry/conf:/opt/nifi-registry/nifi-registry-0.3.0/conf
- ./config/nifi-registry/flow_storage:/opt/nifi-registry/nifi-registry-0.3.0/flow_storage
- ./config/nifi-registry/database/:/opt/nifi-registry/nifi-registry-0.3.0/database

screenshot

最佳答案

(对不起,还不能发表评论,所以我弹出一个答案)

您的日志文件显示'/opt/nifi/nifi-current/logs/nifi-app.log'无法打开。您的配置文件可能有问题吗?

关于docker - 使用docker compose运行Apache NIFI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55089617/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com