Commit 1e28080f authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-49 apache-hadoop role waits for Apache HDFS and Yarn to become available before it continues.

parent c0e0c824
......@@ -9,11 +9,21 @@
tags:
- start-hdfs
- name: Wait for Apache HDFS to become available.
wait_for: host="{{ hostvars[inventory_hostname]["internal_ip"] }}" port=9000
tags:
- start-hdfs
- name: Start Apache Yarn.
shell: /etc/init.d/yarn-init start # Should use Ansible module "service: name=yarn-init state=started" when the bug in version 1.9.1 is fixed.
tags:
- start-yarn
- name: Wait for Apache Yarn to become available.
wait_for: host="{{ hostvars[inventory_hostname]["internal_ip"] }}" port=8050 # 8050 is the port of the resource manager.
tags:
- start-yarn
- name: Create Apache HDFS user directory.
command: "{{ installation_path }}/hadoop/bin/hadoop fs -mkdir /user"
tags:
......
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