*[Your own computer using as many virtual machine you want using Vagrant & ansible](#deploy-cluster-hdfs-with-multiple-vms)
*[multiple servers using ansible](#deploy-cluster-hdfs-on-servers)
3. Deploy a geonetwork as metadata system management
* [Your own computer using a virtual machine with Vagrant & ansible provision]
**Prod Environment** : Deploy a mononode HDFS on a server using ansible
**Sandbox Environment**: Deploy a mononode HDFS on a VM from Vagrant & Ansible
...
...
@@ -83,13 +85,13 @@ 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).
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)
Inside this file, edit your network setting (as DNS nameserver: if your host machine is on a corporate network, your network administrator may have set rules about using DNS servers. In this case, your network allows only your company's DNS. Please edit them in the settings section *and* in provision shell in vagrantFile. If this is not the case (i.e. no DNS rules), please assign "false" to the COMPANY_NETWORK_DNS_RULE variable.
2. Declare those IP for ansible provision in [vars](playbook/roles/hosts-file/vars/main.yml). If you did not change IP setting, skip this step.
3. Configure your own computer to access to your nodes using their hostname (need for access to hadoop web ui)
```shell
vim /etc/hosts
```
if you did not edit your cluster settings since you git have pulled, you may want to use this default settings:
if you did not edit your cluster settings since you have git pulled, you may want to use this default settings:
```shell
10.0.0.10 namenode
10.0.0.11 datanode1
...
...
@@ -121,6 +123,18 @@ Inside this file, edit your network setting (name for your interface adaptator a
## Deploy cluster HDFS on servers
work in progress
# Deploy GeoNetwork
## With Vagrant and ansible
1. Set your nodes' IP address in [VagrantFile](vagrant/geonetwork/Vagrantfile).
Inside this file, edit your network setting (as DNS nameserver: if your host machine is on a corporate network, your network administrator may have set rules about using DNS servers. In this case, your network allows only your company's DNS. Please edit them in the settings section *and* in provision shell in vagrantFile. If this is not the case (i.e. no DNS rules), please assign "false" to the COMPANY_NETWORK_DNS_RULE variable.
2. in cli : start a geonetwork vm form this directory : vagrant/geonetwork](vagrant/geonetwork) :
```shell
vagrant up
```
3. On your own computer, using a webrowser, go on http://10.0.0.9:8080/geonetwork (if IP address as default)