diff --git a/README.md b/README.md index bae8815ac1ecccf1b8ab1f313dc16847336cac5a..3763e19eef9cf6601663fd4ebe878b50d20438ff 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 cceb65b70904fd8a28458fd838da7af8abbd5e9b..0000000000000000000000000000000000000000 --- 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 be73f3e0c8717383cb5faa3354df75261333f47e..9c0afeeb2896c2d6b2c80cd4e974bbcec59e1005 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 245ce7a9d6af8794906bd787ef28cf089a7a8f65..526639b889217b53dee969a33dd1cf09c09cb640 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 16978efc70956168e51690726a191ce1b82f71b2..376e3e998c47a4951f9035ce7ca9d36c85407a5e 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