Commit d6986f60 authored by Decoupes Remy's avatar Decoupes Remy
Browse files

Add /etc/hosts configuration for HDFS multiple nodes

No related merge requests found
Showing with 17 additions and 0 deletions
+17 -0
...@@ -4,4 +4,5 @@ ...@@ -4,4 +4,5 @@
roles: roles:
- common - common
- hosts-file
- hadoop-common - hadoop-common
\ No newline at end of file
...@@ -4,4 +4,5 @@ ...@@ -4,4 +4,5 @@
roles: roles:
- common - common
- hosts-file
- hadoop-common - hadoop-common
\ No newline at end of file
- name: build /etc/hosts with variables definition
become: yes
template:
src: templates/etc_hosts.j2
dest: "/etc/hosts"
\ No newline at end of file
{% for node in cluster %}
{{node.IP}} {{node.hostname}}
{% endfor %}
\ No newline at end of file
cluster:
- hostname: namenode
IP: 10.0.0.10
- hostname: datanode1
IP: 10.0.0.11
- hostname: datanode2
IP: 10.0.0.12
Supports Markdown
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