Giter VIP home page Giter VIP logo

ansible-kafka's People

Contributors

anton-bystrov avatar emoruzzi avatar fidanf avatar gothicx avatar mskott avatar robertlabrie avatar sleighzy avatar thuvh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ansible-kafka's Issues

ssl certificate issue when download kafka

FAILED! => {"changed": false, "msg": "Failed to validate the SSL certificate for dlcdn.apache.org:443. Make sure your managed systems have a valid CA certificate installed. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618).", "status": -1, "url": "https://dlcdn.apache.org/kafka/3.0.0/kafka_2.13-3.0.0.tgz

kafka_advertised_listeners is not resolved

I want to set up advertised.listeners, but the value won't resolve. Even though the variable is set in the config, one can see the following:
#advertised.listeners=PLAINTEXT://your.host.name:9092

Here's the complete playbook:

- name: Install openjdk-8-jdk on all nodes
  hosts: kafka-nodes
  become: true
  tasks:
    - name: Install openjdk-8-jdk
      apt:
        name: openjdk-8-jdk
        state: present
        update_cache: yes

- name: Setup zookeeper
  hosts: kafka-nodes
  roles:
    - role: sleighzy.zookeeper
  vars:
      zookeeper_servers:
        - kafka1

      zookeeper_mirror: https://archive.apache.org/dist/zookeeper
      zookeeper_version: 3.6.4
      zookeeper_package: apache-zookeeper-3.6.4-bin.tar.gz
      zookeeper_servers_use_inventory_hostname: true

- name: Setup kafka
  hosts: kafka-nodes
  become: true
  roles:
    - role: sleighzy.kafka
  vars:
    kafka_download_base_url: https://archive.apache.org/dist/kafka
    kafka_broker_id: "{{ inventory_hostname.split('kafka')[-1] }}"
    kafka_advertised_listeners: "[\"PLAINTEXT://{{ansible_ssh_host}}:9092\"]"
    kafka_version: 2.7.0
    kafka_scala_version: 2.13

The way the value is passed seems correct. When I run the following task, it gives me the value correctly:

- name: Print kafka_advertised_listeners value
  hosts: kafka-nodes
  tasks:
    - name: Print value
      debug:
        msg: "[\"PLAINTEXT://{{ansible_ssh_host}}:9092\"]"

->


        ok: [kafka1] => {
    "msg": [
        "PLAINTEXT://1.2.3.4:9092"
    ]
}

missing zookeeper service

hi
just see only copy template without anything to start zookeeper service

we should have

bin/zookeeper-server-start.sh config/zookeeper.properties

on centos

we have

sudo systemctl start zookeeper
Mot de passe :
Failed to start zookeeper.service: Unit not found.

with kafka-scala versison

regards

not need jaas file in sasl_ssl ?

hi
just a question,
it seems missing loading jaas file, for connect with zookeeper in OPTS when start kafka-server-start.sh ?

kafka advertised listeners commans

Hello,

i'm trying to add ''kafka_advertised_listeners" for each node in my custom inventory file
example:
0.0.0.0 zookeeper_id=1 kafka_broker_id=1 kafka_advertised_listeners='PLAINTEXT://HOSTNAME:9092'

and the output value in server.properties file is separeting each letter with a comma!
output example:
advertised.listeners=P,L,A,I,N,T,E,X,T,:,/,/H,O,S,T,N,A,M,E:,9,0,9,2

it works fine when adding the var to the main file anyway.

thanks.

[Unpack Apache Kafka] Task failed when declared different location for kafka_root_dir

I use this role to install Kafka-cluster on Ubuntu 22.04
My kafka_root_dir is /data/kafka
When run ansible-playbook, I got error:

TASK [sleighzy.kafka : Unpack Apache Kafka] **********************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoneType: None
fatal: [kafka-0]: FAILED! => {"changed": false, "msg": "dest '/data/kafka' must be an existing dir"}

Should we create kafka_root_dir before [Unpack Apache Kafka] task

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.