Commit 47bf88e9 authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-49 Changed apache-hadoop role so that the init scripts are copied, only on the master node.

parent 4036ac66
---
- name: Copy Apache HDFS init script.
template: src=hdfs-init.j2 dest=/etc/init.d/hdfs-init owner=root group=root mode=0755
- name: Copy Apache Yarn init script.
template: src=yarn-init.j2 dest=/etc/init.d/yarn-init owner=root group=root mode=0755
- name: Format Apache HDFS.
shell: "yes | {{ installation_path }}/hadoop/bin/hadoop namenode -format"
tags:
......
......@@ -23,9 +23,3 @@
- name: Configure Apache Yarn.
template: src=yarn-site.xml.j2 dest="{{ installation_path }}/hadoop/etc/hadoop/yarn-site.xml" owner=root group=root mode=0644
- name: Copy Apache HDFS init script.
template: src=hdfs-init.j2 dest=/etc/init.d/hdfs-init owner=root group=root mode=0755
- name: Copy Apache Yarn init script.
template: src=yarn-init.j2 dest=/etc/init.d/yarn-init owner=root group=root mode=0755
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