apachestorm拓扑部署问题

vngu2lb8  于 2021-06-24  发布在  Storm
关注(0)|答案(0)|浏览(262)

我已经在我的机器上创建了一个本地集群来尝试部署storm拓扑,但是我遇到了一个奇怪的问题。因此,当我在本地模式下执行拓扑时,一切正常,但当我在远程模式下执行时,它似乎不起作用,如下面的屏幕截图所示:

所以在这一点上,我不知道问题出在哪里,我还检查了Kafka生产者是否工作,这工作正常,因为这个拓扑使用Kafka喷口。非常感谢你的帮助。
这是Storm

storm.log4j2.conf.dir: "log4j2"

 storm.zookeeper.servers:
     - "127.0.0.1"

 nimbus.seeds: ["127.0.0.1"]

 supervisor.slots.ports:
    - 6700

这是stack.yml文件

version: '3'

services:
    nimbus:
        image: storm:2.1.0
        container_name: nimbus
        command: storm nimbus  -c storm.zookeeper.servers="[\"zookeeper\"]"  -c nimbus.seeds="[\"nimbus\"]"
        depends_on:
            - zookeeper
        links:
            - zookeeper
        restart: always
        ports:
            - "6627:6627"
            - "8000:8000"
        volumes:
            - ./TopologyJar:/TopologyJar

    zookeeper:
        image: zookeeper
        container_name: zookeeper
        restart: always
        ports:
             - "2181:2181"

# storm-cli:

# image: storm:2.1.0

# container_name: storm-cli

# depends_on:

# - zookeeper

# - nimbus

# links:

# - zookeeper

# - nimbus

# 

# #The following two comands

# #are used for showing an I/O terminal aka Shell

## stdin_open: true

## tty: true

    storm-ui: 
        image: storm:2.1.0
        container_name: storm-ui
        command: storm ui  -c nimbus.seeds="[\"nimbus\"]"  -c storm.zookeeper.servers="[\"zookeeper\"]"
        depends_on: 
            - nimbus
            - zookeeper
        links: 
            - nimbus
            - zookeeper
        restart: always
        ports:
            - "8080:8080"

    supervisor:
        image: storm:2.1.0
        command: storm supervisor -c nimbus.seeds="[\"nimbus\"]"  -c storm.zookeeper.servers="[\"zookeeper\"]"
        container_name: supervisor
        depends_on:
            - nimbus
            - zookeeper
            - redis
        links:
            - nimbus
            - zookeeper
            - redis
        restart: always

    redis:
        image: redis
        container_name: redis
        restart: always
        ports:
            - "6379:6379"

# web iu for manage redis

    redis-commander:
        container_name: redis-commander
        hostname: redis-commander
        image: rediscommander/redis-commander:latest
        restart: always
        environment:
        - REDIS_HOSTS=local:redis:6379
        ports:
            - "8081:8081"
        depends_on:
            - redis

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题