testsuite: Use ansible

This commit is contained in:
Björn Busse 2021-03-07 23:53:00 +01:00
parent 59a7187b1b
commit 4b7189dfde
6 changed files with 82 additions and 34 deletions

View file

15
tests/hdfs/tasks/main.yml Normal file
View file

@ -0,0 +1,15 @@
---
- name: Download and extract HDFS archive
ansible.builtin.shell:
cmd: hdfs-setup.sh
chdir: "{{ hadoop_prefix }}"
- name: Create core-site.xml
template: src={{ hdfs_config_path}}/core-site.xml.j2 dest={{ hdfs_config_path}}/core-site.xml mode=0700
- name: Create hdfs-site.xml
template: src={{ hdfs_config_path}}/hdfs-site.xml.j2 dest={{ hdfs_config_path}}/hdfs-site.xml mode=0700
- name: Create mapred-site.xml
template: src={{ hdfs_config_path}}/core-site.xml.j2 dest={{ hdfs_config_path}}/mapred-site.xml mode=0700