Comments (2)
Hi,
Thanks for the issue.
Yes some changes occured that may explain this behaviour. I think it woud be better to use the new KafkaAdminClient
(https://github.com/dpkp/kafka-python/blob/master/kafka/admin/client.py#L28) instead once the interface is stable.
from ansible-kafka-admin.
This breaks using Python 3.7+
failed: [kafka1 -> 127.0.0.1] (item={'name': '_raw_hive', 'options': {'retention.ms': 259200000, 'retention.bytes': -1}, 'state': 'present', 'partitions': 6, 'replica_factor': 2}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "_raw_hive", "options": {"retention.bytes": -1, "retention.ms": 259200000}, "partitions": 6, "replica_factor": 2, "state": "present"}, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 102, in <module>\n File \"<stdin>\", line 94, in _ansiballz_main\n File \"<stdin>\", line 40, in invoke_module\n File \"/usr/lib/python3.8/runpy.py\", line 209, in run_module\n return _run_code(code, {}, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.8/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_kafka_lib_payload_1xwykmsy/ansible_kafka_lib_payload.zip/ansible/modules/kafka_lib.py\", line 21, in <module>\n File \"/home/stephen-blade/dev/metrics-playbook/venv/lib/python3.8/site-packages/kafka/__init__.py\", line 23, in <module>\n from kafka.producer import KafkaProducer\n File \"/home/stephen-blade/dev/metrics-playbook/venv/lib/python3.8/site-packages/kafka/producer/__init__.py\", line 4, in <module>\n from kafka.producer.simple import SimpleProducer\n File \"/home/stephen-blade/dev/metrics-playbook/venv/lib/python3.8/site-packages/kafka/producer/simple.py\", line 54\n return '<SimpleProducer batch=%s>' % self.async\n ^\nSyntaxError: invalid syntax\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
from ansible-kafka-admin.
Related Issues (20)
- [Module] Add `kafka_users` module
- [Module] Unable to use ssl one way with zookeeper
- Output variable name difference for lib kafka_info is not optimal HOT 2
- UnboundLocalError: local variable 'manager' referenced before assignment while using SSL HOT 1
- Get unspecified Error Message on module kafka_info for topics HOT 3
- Unnecessary requirement for acl_operation in module kafka_acls HOT 1
- Unable to get Topic Information when connecting to a Cluster using SSL HOT 20
- spelling: Seomthing -> Something
- Question: How to add ACLs with transactional-ids? HOT 5
- kafka_topic: invalid check_mode behaviour when updating an existing topic HOT 2
- Enhancement: allow to define common configurations from env vars HOT 1
- Could not find imported module support code for kafka_users: Looked for ansible.module_utils.kafka_scram HOT 1
- kafka_user: Multiple mechanisms for password during user creation HOT 1
- Ansible-galaxy is not updated HOT 1
- Add publishing to Ansible Galaxy as collection HOT 4
- Missing asset in release 0.18.1 HOT 3
- Add quotas management for KRaft-based clusters HOT 2
- Consumer group ACL creation issue on 0.19.0 HOT 1
- outdated example HOT 1
- Add mTLS SSL support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-kafka-admin.