Giter VIP home page Giter VIP logo

ansible-kafka's Introduction

ansible-kafka

This Ansible playbook will build a Kafka cluster with Zookeeper.

You can pre-build a Rackspace cloud environment or run the playbook against an existing environment.


[Installation] (id:installation)

See INSTALL.md for installation and build instructions.

[Requirements] (id:requirements)

  • Ansible >= 2.0.

  • Expects RHEL/CentOS 6/7 or Ubuntu 14 hosts.

  • Building the Rackspace Cloud environment requires the pyrax Python module: pyrax link.

[Features] (id:features)

  • It installs Zookeeper for Kafka (Zookeeper is installed on the first 3 nodes only).

  • It supports static inventory if the environment is pre-built (inventory/static file).

  • The id is automatically set (on the inventory items in alphabetical order).

  • The data drives can be customized and can be put on top of Rackspace Cloud Block Storage.

  • It includes init scripts for both Zookeeper and Kafka.

[Inventory] (id:inventory)

  • The cloud environment requires the standard pyrax credentials file that looks like this:

    [rackspace_cloud]
    username = my_username
    api_key = 01234567890abcdef
    

    This file will be referenced in the RAX_CREDS_FILE environment variable.

    By default, the file is expected to be: ~/.raxpub.

  • When provisioning Kafka on existing infrastructure edit inventory/static and add the nodes.

[Configuration] (id:configuration)

To customize, change the variables under playbooks/group_vars and playbooks/roles folders:

  1. playbooks/group_vars/all: contains cluster and cloud settings
  2. playbooks/roles/zookeeper/defaults/main.yml: Zookeeper specific settings
  3. playbooks/roles/kafka/defaults/main.yml: Kafka specific settings

For a one-node cluster, set nodes_count in playbooks/group_vars/all to 1.

[Scripts] (id:scripts)

To provision a Rackspace Cloud environment, run the provision_rax.sh script after you've customized the variables:

bash provision_rax.sh

Similarly, run the one of the kafka_*.sh scripts, depending what type of environment you have.

  • For a Rackspace Cloud environment:

    bash kafka_rax.sh
    
  • For static / prebuilt environments:

    bash kafka_static.sh
    

ansible-kafka's People

Contributors

alexandruanghel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.