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

Select Status

RSS

confluent (8) Versions 0.2.0

Installs/Configures confluent

Policyfile
Berkshelf
Knife
cookbook 'confluent', '= 0.2.0', :supermarket
cookbook 'confluent', '= 0.2.0'
knife supermarket install confluent
knife supermarket download confluent
README
Dependencies
Changelog
Quality 0%

Confluent Cookbook

Cookbook Version

Installs the Confluent package and can run its services,

  • Kafka
  • Kafka REST
  • Schema Registry

View the [Change Log](CHANGELOG.md) to see what has changed.

Getting Started

Install/Configure Confluent Package

If you include the recipe[confluent] this will install the Confluent package and nothing else.

You can find the package installed under /opt/confluent (by default) with the name confluent-VERSION.

You can also find the configuration under,

  • /etc/kafka
  • /etc/kafka-rest
  • /etc/schema-registry

Kafka Service

If you include the recipe[confluent::kafka] this will install the Confluent package and start the Kafka service.

You can configure the service using the attribtues node["confluent"]["kafka"]["server.properties"][...] = ....
Use Confluent's Kafka doc
to figure out the appropriate configuration for yourself.

You can find the SysV script at /etc/init.d/kafka-rest or service kafka-rest [start|stop|restart|status].

You can find the logs at /var/log/confluent/kafka.log.

Kafka REST Service

If you include the recipe[confluent::kafka-rest] this will install the Confluent package and start the
Kafka REST service.

You can configure the service using the attribtues node["confluent"]["kafka-rest"]["kafka-rest.properties"][...] = ....
Use Confluent's Kafka REST doc to figure out the
appropriate configuration for yourself.

You can find the SysV script at /etc/init.d/kafka-rest or service kafka-rest [start|stop|restart|status].

You can find the logs at /var/log/confluent/kafka-rest.log.

Schema Registry Service

If you include the recipe[confluent::schema-registry] this will install the Confluent package and start the
Schema Registry service.

You can configure the service using the attribtues node["confluent"]["schema-registry"]["schema-registry.properties"][...] = ....
Use Confluent's Schema Registry doc to figure out the
appropriate configuration for yourself.

You can find the SysV script at /etc/init.d/schema-registry or service schema-registry [start|stop|restart|status].

You can find the logs at /var/log/confluent/schema-registry.log.

Attributes

Generic

  • node["confluent"]["version"] : The version of the Confluent package to install (default=1.0)
  • node["confluent"]["scala_version"] : The scala version of the Confluent package to install (default=2.10.4)
  • node["confluent"]["artifact_url"] : The URL to the Confluent package to install. This is generated using the version and scala_version attributes. It downloads from packages.confluent.io.
  • node["confluent"]["install_dir"] : The directory to install the Confluent package (default=/opt/confluent)
  • node["confluent"]["user"] : The user that owns the Confluent package files and runs the services (default=confluent)
  • node["confluent"]["group"] : The group that owns the Confluent package files and runs the services (default=confluent)

Kafka

  • node["confluent"]["kafka"]["server.properties"] : A Hash of properties that configure the Kafka service (default={})
  • node["confluent"]["kafka"]["env_vars"] : A Hash of environment variables applied when running the service
  • node["confluent"]["kafka"]["log4j.properties"] : A Hash of properties that configure log4j for the Kafka service (see attributes for defaults)

Kafka REST

  • node["confluent"]["kafka-rest"]["kafka-rest.properties"] : A Hash of properties that configure the Kafka REST service (default={})
  • node["confluent"]["kafka-rest"]["env_vars"] : A Hash of environment variables applied when running the service
  • node["confluent"]["kafka-rest"]["log4j.properties"] : A Hash of properties that configure log4j for the Kafka REST service (see attributes for defaults)

Schema Registry

  • node["confluent"]["schema-registry"]["schema-registry.properties"] : A Hash of properties that configure the Schema Registry service (default={})
  • node["confluent"]["schema-registry"]["env_vars"] : A Hash of environment variables applied when running the service
  • node["confluent"]["schema-registry"]["log4j.properties"] : A Hash of properties that configure log4j for the Schema Registry service (see attributes for defaults)

Dependent cookbooks

java >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Change Log

0.2.0 - 08-05-2015

  • [Enhancement] Issue-7 : Restart services if config files change
  • [Enhancement] Issue-6 : Add unit tests
  • [Enhancement] Issue-4 : Setup proper logging for services by default
  • [Feature] Issue-3 : Allow configuring java settings
  • [Feature] Issue-2 : Support schema registry

0.1.0 - 03-30-2015

  • [Feature] Issue-1 : Initial working cookbook

Foodcritic Metric
            

0.2.0 failed this metric

FC023: Prefer conditional attributes: /tmp/cook/ad44dbf971c0b8f4da3dad6e/confluent/recipes/_install.rb:47
FC031: Cookbook without metadata file: /tmp/cook/ad44dbf971c0b8f4da3dad6e/confluent/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/ad44dbf971c0b8f4da3dad6e/confluent/metadata.rb:1