testsuite: Use ansible
This commit is contained in:
parent
59a7187b1b
commit
4b7189dfde
6 changed files with 82 additions and 34 deletions
0
tests/hdfs/defaults/main.yml
Normal file
0
tests/hdfs/defaults/main.yml
Normal file
15
tests/hdfs/tasks/main.yml
Normal file
15
tests/hdfs/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue