Generalize version numbers
This commit is contained in:
parent
996a0eefba
commit
125e9d2d4a
|
|
@ -10,9 +10,9 @@ Apache Storm is a distributed computation framework written predominantly in the
|
||||||
|
|
||||||
## Running topologies in local mode
|
## Running topologies in local mode
|
||||||
|
|
||||||
Assuming you have `storm-starter-topologies-1.0.3.jar` in the current directory.
|
Assuming you have `storm-starter-topologies-1.0.0.jar` in the current directory.
|
||||||
|
|
||||||
$ docker run -it -v $(pwd)/storm-starter-topologies-1.0.3.jar:/topology.jar storm:1.0.3 storm jar /topology.jar org.apache.storm.starter.ExclamationTopology
|
$ docker run -it -v $(pwd)/storm-starter-topologies-1.0.0.jar:/topology.jar storm:1.0 storm jar /topology.jar org.apache.storm.starter.ExclamationTopology
|
||||||
|
|
||||||
## Setting up a minimal Storm cluster
|
## Setting up a minimal Storm cluster
|
||||||
|
|
||||||
|
|
@ -22,19 +22,19 @@ Assuming you have `storm-starter-topologies-1.0.3.jar` in the current directory.
|
||||||
|
|
||||||
2. The Nimbus daemon has to be connected with the Zookeeper. It's also a "fail fast" system.
|
2. The Nimbus daemon has to be connected with the Zookeeper. It's also a "fail fast" system.
|
||||||
|
|
||||||
$ docker run -d --restart always --name some-nimbus --link some-zookeeper:zookeeper storm:1.0.3 storm nimbus
|
$ docker run -d --restart always --name some-nimbus --link some-zookeeper:zookeeper storm:1.0 storm nimbus
|
||||||
|
|
||||||
3. Finally start a single Supervisor node. It will talk to the Nimbus and Zookeeper.
|
3. Finally start a single Supervisor node. It will talk to the Nimbus and Zookeeper.
|
||||||
|
|
||||||
$ docker run -d --restart always --name supervisor --link some-zookeeper:zookeeper --link some-nimbus:nimbus storm:1.0.3 storm supervisor
|
$ docker run -d --restart always --name supervisor --link some-zookeeper:zookeeper --link some-nimbus:nimbus storm:1.0 storm supervisor
|
||||||
|
|
||||||
4. Now you can submit a topology to our cluster.
|
4. Now you can submit a topology to our cluster.
|
||||||
|
|
||||||
$ docker run --link some-nimbus:nimbus -it --rm -v $(pwd)/storm-starter-topologies-1.0.3.jar:/topology.jar storm:1.0.3 storm jar /topology.jar org.apache.storm.starter.WordCountTopology topology
|
$ docker run --link some-nimbus:nimbus -it --rm -v $(pwd)/storm-starter-topologies-1.0.0.jar:/topology.jar storm:1.0 storm jar /topology.jar org.apache.storm.starter.WordCountTopology topology
|
||||||
|
|
||||||
5. Optionally, you can start the Storm UI.
|
5. Optionally, you can start the Storm UI.
|
||||||
|
|
||||||
$ docker run -d -p 8080:8080 --restart always --name ui --link some-nimbus:nimbus storm:1.0.3 storm ui
|
$ docker run -d -p 8080:8080 --restart always --name ui --link some-nimbus:nimbus storm:1.0 storm ui
|
||||||
|
|
||||||
## %%COMPOSE%%
|
## %%COMPOSE%%
|
||||||
|
|
||||||
|
|
@ -42,24 +42,24 @@ Run `docker-compose up` and wait for it to initialize completely. The Nimbus wil
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
This image uses [default configuration](https://github.com/apache/storm/blob/v1.0.3/conf/defaults.yaml) of the Apache Storm. There are two main ways to change it.
|
This image uses [default configuration](https://github.com/apache/storm/blob/v1.0.0/conf/defaults.yaml) of the Apache Storm. There are two main ways to change it.
|
||||||
|
|
||||||
1. Using command line arguments.
|
1. Using command line arguments.
|
||||||
|
|
||||||
$ docker run -d --restart always --name nimbus storm:1.0.3 storm nimbus -c storm.zookeeper.servers="[zookeeper]"
|
$ docker run -d --restart always --name nimbus storm:1.0 storm nimbus -c storm.zookeeper.servers="[zookeeper]"
|
||||||
|
|
||||||
2. Assuming you have `storm.yaml` in the current directory you can mount it as a volume.
|
2. Assuming you have `storm.yaml` in the current directory you can mount it as a volume.
|
||||||
|
|
||||||
$ docker run -it -v $(pwd)/storm.yaml:/conf/storm.yaml storm:1.0.3 storm nimbus
|
$ docker run -it -v $(pwd)/storm.yaml:/conf/storm.yaml storm:1.0 storm nimbus
|
||||||
|
|
||||||
## Logging
|
## Logging
|
||||||
|
|
||||||
This image uses [default logging configuration](https://github.com/apache/storm/tree/v1.0.3/log4j2). All logs go to the `/logs` directory by default.
|
This image uses [default logging configuration](https://github.com/apache/storm/tree/v1.0.0/log4j2). All logs go to the `/logs` directory by default.
|
||||||
|
|
||||||
## Data persistence
|
## Data persistence
|
||||||
|
|
||||||
No data are persisted by default. For convenience there are `/data` and `/logs` directories in the image owned by `storm` user. Use them accordingly to persist data and logs using volumes.
|
No data are persisted by default. For convenience there are `/data` and `/logs` directories in the image owned by `storm` user. Use them accordingly to persist data and logs using volumes.
|
||||||
|
|
||||||
$ docker run -it -v /logs -v /data storm:1.0.3 storm nimbus
|
$ docker run -it -v /logs -v /data storm:1.0 storm nimbus
|
||||||
|
|
||||||
*Please be noticed that using paths other than those predefined is likely to cause permission denied errors. It's because for [security reasons](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#user) the Storm is running under the non-root `storm` user.*
|
*Please be noticed that using paths other than those predefined is likely to cause permission denied errors. It's because for [security reasons](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#user) the Storm is running under the non-root `storm` user.*
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
nimbus:
|
nimbus:
|
||||||
image: storm:1.0.3
|
image: storm:1.0
|
||||||
container_name: nimbus
|
container_name: nimbus
|
||||||
command: storm nimbus
|
command: storm nimbus
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
@ -18,7 +18,7 @@ services:
|
||||||
- 6627:6627
|
- 6627:6627
|
||||||
|
|
||||||
supervisor:
|
supervisor:
|
||||||
image: storm:1.0.3
|
image: storm:1.0
|
||||||
container_name: supervisor
|
container_name: supervisor
|
||||||
command: storm supervisor
|
command: storm supervisor
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue