https://github.com/lewuathe/storm-cookbook
Chef cookbook for storm
https://github.com/lewuathe/storm-cookbook
chef cookbook storm
Last synced: 3 months ago
JSON representation
Chef cookbook for storm
- Host: GitHub
- URL: https://github.com/lewuathe/storm-cookbook
- Owner: Lewuathe
- License: mit
- Created: 2015-01-17T13:45:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T12:20:35.000Z (over 9 years ago)
- Last Synced: 2025-06-10T13:05:37.533Z (about 1 year ago)
- Topics: chef, cookbook, storm
- Language: Ruby
- Size: 74.2 KB
- Stars: 8
- Watchers: 1
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
storm-cookbook [](https://travis-ci.org/Lewuathe/storm-cookbook)  
==============
This is a chef cookbook for [apache storm](http://storm.apache.org/)
Download
----------
[storm-cluster: Chef Supermarket](https://supermarket.chef.io/cookbooks/storm-cluster)
Requirements
------------
Chef: 11.18.0+
java
When you run this cookbook on debian platform, you should run also `apt::default` recipe before storm recipes.
Attributes
----------
#### storm::default
|Key|Type|Description|Default|
|:---|:---|:---|:---|
|['storm']['package']|String|Storm package name for constructing storm cluster|apache-storm-0.10.0-SNAPSHOT|
|['storm']['version']|String|Storm version|0.10.0-SNAPSHOT|
|['storm']['install_dir']|String|Storm package install directory|/usr/share/storm|
|['storm']['install_method']|String|Set to remote_file to download from storm.apache.org|cookbook_file|
All storm.yaml options are supported through the node['storm']['storm_yaml'] not object. See the attributes/storm_yaml.rb for more details.
At a minimum you will need create a role/environment/wrapper with the following options:
"storm": {
"storm_yaml": {
"nimbus.host": "nimbus.example.com",
"storm.zookeeper.servers": [
"zookeeper1.example.com"
]
}
}
Usage
-----
First you have to add your storm package under `files/default` as tar.gz format in default `install_method`.
```
$ cp cookbooks/storm-cluster/files/default/
```
If you change `install_method` to `remote_file`, the package will be downloaded automatically.
## Recipes
e.g.
Just include `storm` in your node's `run_list`:
### storm::nimbus
For nimbus node
```json
{
"name":"nimbus_host",
"run_list": [
"storm::nimbus"
]
}
```
### storm::supervisor
For supervisor node
```json
{
"name":"supervisor_host",
"run_list": [
"storm::supervisor"
]
}
```
### storm::drpc
For DRPC server
```json
{
"name": "drpc_host",
"run_list": [
"storm::drpc"
]
}
```
Contributing
------------
1. Fork the repository on Github
2. Create a named feature branch (like `add_component_x`)
3. Write your change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github
License and Authors
-------------------
Authors:
* Kai Sasaki([Lewuathe](https://github.com/Lewuathe))
* Bill Warner([TD-4242](https://github.com/TD-4242))
This cookbook is distributed under [MIT License](http://opensource.org/licenses/MIT)