storm-docker

Dockerfiles用于构建Storm群集。(Dockerfiles for building a storm cluster.)

  • 所有者: wurstmeister/storm-docker
  • 平台: Linux, Mac, Windows
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

storm-docker

Dockerfiles for building a storm cluster. Inspired by https://github.com/ptgoetz/storm-vagrant

The images are available directly from https://index.docker.io

##Pre-Requisites

##Usage

Start a cluster:

  • docker-compose up

Destroy a cluster:

  • docker-compose stop

Add more supervisors:

  • docker-compose scale supervisor=3

##Building

  • rebuild.sh

##FAQ

How can I access Storm UI from my host?

Take a look at docker-compose.yml:

ui:
  image: wurstmeister/storm-ui:0.9.2
      ports:
        - "49080:8080"

This tells Docker to expose the Docker UI container's port 8080 as port 49080 on the host

If you are running docker natively you can use localhost. If you're using boot2docker, then do:

$ boot2docker ip
The VM's Host only interface IP address is: 192.168.59.103

Which returns your docker VM's IP.
So, to open storm UI, type the following in your browser:

localhost:49080

or

192.168.59.103:49080

in my case.

How can I deploy a topology?

Since the nimbus host and port are not default, you need to specify where the nimbus host is, and what is the nimbus port number.
Following the example above, after discovering the nimbus host IP (could be localhost, could be our docker VM ip as in the case of boot2docker), run the following command:

storm jar target/your-topology-fat-jar.jar com.your.package.AndTopology topology-name -c nimbus.host=192.168.59.103 -c nimbus.thrift.port=49627

How can I connect to one of the containers?

Find the forwarded ssh port for the container you wish to connect to (use docker-compose ps)

$ ssh root@`boot2docker ip` -p $CONTAINER_PORT

The password is 'wurstmeister' (from: https://registry.hub.docker.com/u/wurstmeister/base/dockerfile/).

主要指标

概览
名称与所有者wurstmeister/storm-docker
主编程语言Shell
编程语言Shell (语言数: 1)
平台Linux, Mac, Windows
许可证Apache License 2.0
所有者活动
创建于2013-12-22 19:21:46
推送于2018-03-02 17:50:54
最后一次提交2015-04-22 21:11:56
发布数2
最新版本名称0.9.4 (发布于 2015-04-03 10:03:51)
第一版名称0.9.3 (发布于 2015-01-02 16:27:05)
用户参与
星数229
关注者数18
派生数169
提交数30
已启用问题?
问题数19
打开的问题数9
拉请求数4
打开的拉请求数4
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?