Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
okeanos-LoD
Commits
cba49377
Commit
cba49377
authored
Jul 06, 2015
by
Georgios Ouzounis
Browse files
LAM-30 Changed the default master-node name in apache-kafka role.
parent
25d0011c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ansible/roles/apache-kafka/handlers/main.yml
View file @
cba49377
---
-
name
:
create topics
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master']['kafka-ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic input
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master
-node
']['kafka-ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic input
notify
:
-
create batch output topic
-
name
:
create batch output topic
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master']['kafka-ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic batch-output
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master
-node
']['kafka-ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic batch-output
notify
:
-
create stream output topic
-
name
:
create stream output topic
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master']['kafka-ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic stream-output
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master
-node
']['kafka-ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic stream-output
ansible/roles/apache-kafka/tasks/slaves.yml
View file @
cba49377
...
...
@@ -10,7 +10,7 @@
-
configure-kafka
-
name
:
Configure the Apache Zookeeper host.
lineinfile
:
dest=/usr/local/kafka/config/server.properties regexp="^zookeeper.connect=localhost:2181" line="zookeeper.connect={{ hostvars['master']['kafka-ip'] }}:2181"
lineinfile
:
dest=/usr/local/kafka/config/server.properties regexp="^zookeeper.connect=localhost:2181" line="zookeeper.connect={{ hostvars['master
-node
']['kafka-ip'] }}:2181"
tags
:
-
configure-kafka
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment