cookbook 'confluent-cookbook', '= 0.2.0'
confluent-cookbook (5) Versions 0.2.0 Follow0
Installs/Configures confluent.io platform from rpm/deb packages
cookbook 'confluent-cookbook', '= 0.2.0', :supermarket
knife supermarket install confluent-cookbook
knife supermarket download confluent-cookbook
confluent.io Cookbook
This cookbook is using the confluent rpm and deb repositories to install the confluent-platform package. It will create a user confluent and init scripts for kafka and zookeeper.
Recipe
It comes with two recipes: confluent-cookbook::default and confluent-cookbook::schema-registry.
Configuration
Instead of maintaining configuration templates, chef configuration properties will be added as server.properties, zookeeper.properties and schema-registry.properties files.
Example Kafka:
ruby
default["confluent"]["kafka"]["server.properties"]["broker.id"] = "0"
default["confluent"]["kafka"]["server.properties"]["port"] = "9092"
...
will look like this in the /etc/kafka/server.properties
broker.id=0
port=9092
...
Example ZooKeeper:
ruby
default["confluent"]["kafka"]["zookeeper.properties"]["dataDir"] = "/tmp/zookeeper"
default["confluent"]["kafka"]["zookeeper.properties"]["clientPort"] = "2181"
...
will look like this in the /etc/kafka/zookeeper.properties
dataDir=/tmp/zookeeper
clientPort=2181
...
Other confluent-platform configurations
Right now only Kafka, ZooKeeper and the Schema-Registry can be configured. This will probably change since it is "work in progress".
Vagrant
In order to be able to run vagrant you need to run berks init and you have to install vagrant-berkshelf via vagrant plugin install vagrant-berkshelf. Afterwards run vagrant up.
Supported OS Distributions
Right now it has been tested with:
- CentOS 6.5
- Ubuntu 14.04 (where it seems to hang sometimes during installation)
JRE
You need to install your desired JRE yourself, see Vagrantfile as an example.
Build
At some point this project might have a travis build job.
Dependent cookbooks
| java >= 0.0.0 |
| apt >= 0.0.0 |
| yum >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.1.0
Initial release of confluent-cookbook
0.1.1
fixed some renaming
0.2.0
Added Schema-Registry service and configuration.