Commit 3d1b6300 authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-33 The cluster data an internal network.

parent fc807b40
# Uncomment the following line and fill the IP address of the master node.
# master_node_ip:
internal_ip: "192.168.0.3"
internal_ip: "192.168.0.2"
## Apache Kafka variables.
id: 1
internal_ip: "192.168.0.4"
## Apache Kafka variables.
id: 2
......@@ -21,7 +21,7 @@
# Common
#==============================================================================
jobmanager.rpc.address: {{ master_node_ip }}
jobmanager.rpc.address: {{ internal_ip }}
jobmanager.rpc.port: 6123
......
---
- name: create topics
shell: "{{ installation_path }}/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['master_node_ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic input"
shell: "{{ installation_path }}/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['internal_ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic input"
notify:
- create batch output topic
- name: create batch output topic
shell: "{{ installation_path }}/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['master_node_ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic batch-output"
shell: "{{ installation_path }}/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['internal_ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic batch-output"
notify:
- create stream output topic
- name: create stream output topic
shell: "{{ installation_path }}/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['master_node_ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic stream-output"
shell: "{{ installation_path }}/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['internal_ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic stream-output"
......@@ -117,7 +117,7 @@ log.cleaner.enable=false
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
# You can also append an optional chroot string to the urls to specify the
# root directory for all kafka znodes.
zookeeper.connect={{ hostvars['master-node']['master_node_ip'] }}:2181
zookeeper.connect={{ hostvars['master-node']['internal_ip'] }}:2181
# Timeout in ms for connecting to zookeeper
zookeeper.connection.timeout.ms=6000
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment