From 3bab80b35498c97db800f008cdcf326bb858b84e Mon Sep 17 00:00:00 2001 From: Remy Decoupes <remy.decoupes@irstea.fr> Date: Thu, 19 Dec 2019 23:44:59 +0100 Subject: [PATCH] 6b25de88 --- README.md | 26 +++++++++++++++++---- ansible-launch.sh | 2 -- playbook/roles/hadoop-common/tasks/main.yml | 2 +- vagrant/cluster/Vagrantfile | 4 ++-- vagrant/geonetwork/Vagrantfile | 3 +-- 5 files changed, 25 insertions(+), 12 deletions(-) delete mode 100755 ansible-launch.sh diff --git a/README.md b/README.md index bae8815..3763e19 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ - -[](https://creativecommons.org/licenses/by-nc/4.0/legalcode) - # Ansible deployment for AIDMOIt This project aims to deploy a datalake and its ecosystem using **[Ansible](https://docs.ansible.com/)** and/or **[Vagrant](https://www.vagrantup.com/)**. @@ -80,9 +77,10 @@ Then run the script [ansible-launch.sh](ansible-launch.sh) : ``` # Deploy a HDFS cluster ## Deploy cluster HDFS with multiple VMs -1. Set your nodes' IP address in [VagrantFile](vagrant/cluster/Vagrantfile) +1. Set your nodes' IP address in [VagrantFile](vagrant/cluster/Vagrantfile). +Inside this file, edit your network setting (name for your interface adaptator and DNS option) 2. Declare those IP for ansible provision in [vars](playbook/roles/hosts-file/vars/main.yml) -3. Configure your own computer to access to your nodes using their hostname +3. Configure your own computer to access to your nodes using their hostname (need for access to hadoop web ui) ```shell vim /etc/hosts ``` @@ -111,3 +109,21 @@ Then run the script [ansible-launch.sh](ansible-launch.sh) : if default : http://10.0.0.10:9870 ## Deploy cluster HDFS on servers work in progress + +## License + + +**Aidmoit's Collect** is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses diff --git a/ansible-launch.sh b/ansible-launch.sh deleted file mode 100755 index cceb65b..0000000 --- a/ansible-launch.sh +++ /dev/null @@ -1,2 +0,0 @@ -#ssh-copy-id vagrant@172.16.50.54 -ansible-playbook -i inventory/static playbook/mononode.yml -u vagrant --become --ask-become-pass diff --git a/playbook/roles/hadoop-common/tasks/main.yml b/playbook/roles/hadoop-common/tasks/main.yml index be73f3e..9c0afee 100644 --- a/playbook/roles/hadoop-common/tasks/main.yml +++ b/playbook/roles/hadoop-common/tasks/main.yml @@ -29,7 +29,7 @@ - name: Set JAVA_HOME as environment variable become: yes - become_user : hadoop + # become_user : hadoop blockinfile: insertafter: EOF path : ~/.bashrc diff --git a/vagrant/cluster/Vagrantfile b/vagrant/cluster/Vagrantfile index 245ce7a..526639b 100644 --- a/vagrant/cluster/Vagrantfile +++ b/vagrant/cluster/Vagrantfile @@ -9,7 +9,7 @@ Vagrant.configure("2") do |config| namenode.vm.network "public_network", bridge:"enp1s0", use_dhcp_assigned_default_route: true namenode.vm.provision "shell", inline: <<-SHELL systemctl stop resolvconf - echo "nameserver 10.34.192.61" > /etc/resolv.conf + echo "nameserver 10.34.192.61" >> /etc/resolv.conf echo "nameserver 10.34.192.62" >> /etc/resolv.conf SHELL namenode.vm.hostname = "namenode" @@ -32,7 +32,7 @@ Vagrant.configure("2") do |config| machine.vm.network "public_network", bridge:"enp1s0", use_dhcp_assigned_default_route: true machine.vm.provision "shell", inline: <<-SHELL systemctl stop resolvconf - echo "nameserver 10.34.192.61" > /etc/resolv.conf + echo "nameserver 10.34.192.61" >> /etc/resolv.conf echo "nameserver 10.34.192.62" >> /etc/resolv.conf SHELL machine.vm.hostname = "datanode#{machine_id}" diff --git a/vagrant/geonetwork/Vagrantfile b/vagrant/geonetwork/Vagrantfile index 16978ef..376e3e9 100644 --- a/vagrant/geonetwork/Vagrantfile +++ b/vagrant/geonetwork/Vagrantfile @@ -4,14 +4,13 @@ Vagrant.configure("2") do |config| config.vm.box = "generic/debian9" - # Config Rémy pour piloter avec ansible et installer geonetwork config.vm.define "aidmoit-geonetwork" config.vm.hostname = "aidmoit-geonetwork" config.vm.network "public_network", bridge:"enp1s0", use_dhcp_assigned_default_route: true config.vm.provision "shell", inline: <<-SHELL systemctl stop resolvconf - echo "nameserver 10.34.192.61" > /etc/resolv.conf + echo "nameserver 10.34.192.61" >> /etc/resolv.conf echo "nameserver 10.34.192.62" >> /etc/resolv.conf SHELL -- GitLab