Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


storm-platform (9) Versions 1.2.0

Install/Configure a Storm cluster

cookbook 'storm-platform', '= 1.2.0'
cookbook 'storm-platform', '= 1.2.0', :supermarket
knife supermarket install storm-platform
knife supermarket download storm-platform
Quality 100%

Storm Cluster


Apache Storm is a free and open source distributed realtime computation system. Storm makes it easy to reliably process unbounded streams of data, doing for realtime processing what Hadoop did for batch processing. Storm is simple, can be used with any programming language, and is a lot of fun to use!


Cookbooks and gems

Declared in [metadata.rb](metadata.rb) and in [Gemfile](Gemfile).


A systemd managed distribution: - RHEL Family 7, tested on Centos

Note: it should work fine on Debian 8 but the official docker image does not allow systemd to work easily, so it could not be tested.


Easy Setup

This cookbook creates the number of nodes specified by attribute node['storm-platform']['size'] (3 by default). The first node to be created will be setup with a Nimbus, a LogViewer and a UI. All other nodes will host a Supervisor and a LogViewer. To get this cookbook to setup the nth node to hold the Nimbus, Supervisor and LogViewer instead of the first one, change attribute node['storm-platform']['nimbus_id'].

By default, this cookbook installs openjdk from the official repositories (openjdk-headless 8 on centos 7) just before starting the service. You can change this behavior by setting node['storm-platform']['java'] to "", or choose your package by setting the package name in node['storm-platform']['java'][node[:platform]].

See [roles](test/integration/roles) for some examples and Cluster Search documentation for more information.


This cookbook is fully tested through the installation of the full platform in docker hosts. This uses kitchen, docker and some monkey-patching.

If you run kitchen list, you will see 4 suites:

  • dnsdock-centos-7
  • zookeeper-centos-7
  • storm-nimbus-centos-7
  • storm-supervisor-centos-7

Each corresponds to a different node in the cluster.

For more information, see [.kitchen.yml](.kitchen.yml) and [test](test) directory.

Local cluster

The cluster installed with kitchen converge is fully working and can thus be used as a local cluster for developments tests.

One can access the cluster by adding the dnsdock used in the cluster as main DNS resolver: add docker inspect --format '{{.NetworkSettings.IPAddress}}' dnsdock-storm in /etc/resolv.conf.


Configuration is done by overriding default attributes. All configuration keys have a default defined in [attributes/default.rb](attributes/default.rb). Please read it to have a comprehensive view of what and how you can configure this cookbook behavior.



Installs a three node cluster as follow :

  • Nimbus + LogViewer + UI
  • Supervisor + LogViewer
  • Supervisor + LogViewer


Extract a Storm tarball as per attributes.


Create system user for Storm binaries to run with.


Apply settings from attribute configuration to Storm configuration.


Create Systemd service files and set them up.






Please read carefully []( before making a merge request.

License and Author

Copyright:: 2015, Sam4Mobile

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

cluster-search >= 0.0.0
ark >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog ========= 1.2.0 ----- Main: - Use storm 0.10.0 by default - Generate config in 2 steps: can use chef variables in erb style Fixes: - Fix dirty yaml of nested structure for storm.yaml - Fix topology launch: create a link from storm.home/logs to log_dir - Fix auto-restart and also monitor log4j2 files - Fix: apply STORM-945 in default log4j configuration Test: - Rationalize docker provision to limit images Packaging: - Reorganize README: + Move changelog from README to CHANGELOG + Move contribution guide to + Reorder README, fix Gemfile missing - Add Apache 2 license file - Add missing chefignore 1.1.0 ----- - Strengthen tests reliability by sleeping after a Storm service is launch - Dependencies use supermarket, switch to zookeeper-platform 1.0.1 ----- - Cleaning, use java-1.8.0-openjdk-headless as default java package 1.0.0 ----- - Initial version with Centos 7 support

Foodcritic Metric

1.2.0 passed this metric