Commit 261bb190 authored by rdecoupe's avatar rdecoupe
Browse files

fix issue #1 x3 and edit typo in readme.md

No related merge requests found
Showing with 11 additions and 2 deletions
+11 -2
...@@ -78,6 +78,7 @@ You only need virtual box and vagrant installed on your computer. This project i ...@@ -78,6 +78,7 @@ You only need virtual box and vagrant installed on your computer. This project i
```shell ```shell
vagrant up vagrant up
``` ```
Pay attention, some OS (as debian buster, need to be sudo for this instruction : sudo vagrant up)
## Deploy mono-node HDFS on a server ## Deploy mono-node HDFS on a server
First configure your IP adress in the [inventory file](inventory/static) First configure your IP adress in the [inventory file](inventory/static)
...@@ -105,13 +106,19 @@ Inside this file, edit your network setting (as DNS nameserver: if your host mac ...@@ -105,13 +106,19 @@ Inside this file, edit your network setting (as DNS nameserver: if your host mac
```shell ```shell
vagrant up vagrant up
``` ```
Pay attention, some OS (as debian buster, need to be sudo for this instruction : sudo vagrant up)
5. Format HDFS : 5. Format HDFS :
* ssh on namenode * ssh on namenode
```shell
vagrant ssh namenode
```
Pay attention, some OS (as debian buster, need to be sudo for this instruction : sudo vagrant up)
* in cli : as user hadoop : change directory & format HDFS * in cli : as user hadoop : change directory & format HDFS
```shell ```shell
sudo su hadoop sudo su hadoop
cd /usr/local/hadoop/bin/ cd /usr/local/hadoop/bin/
./hdfs namenode -format ./hdfs namenode -format
exit
``` ```
6. Start HDFS deamon on your cluser 6. Start HDFS deamon on your cluser
* ssh on namenode * ssh on namenode
...@@ -119,7 +126,6 @@ Inside this file, edit your network setting (as DNS nameserver: if your host mac ...@@ -119,7 +126,6 @@ Inside this file, edit your network setting (as DNS nameserver: if your host mac
```shell ```shell
sudo systemctl start hadoop sudo systemctl start hadoop
``` ```
* **WORK In Progress** : systemd will tell you something wrong happens but cluster is working anyway.
7. Verify your cluster is up: 7. Verify your cluster is up:
* on your own device, use a webbrowser * on your own device, use a webbrowser
* go on [IP-of-your-namenode]:9870 * go on [IP-of-your-namenode]:9870
...@@ -135,6 +141,7 @@ Inside this file, edit your network setting (as DNS nameserver: if your host mac ...@@ -135,6 +141,7 @@ Inside this file, edit your network setting (as DNS nameserver: if your host mac
```shell ```shell
vagrant up vagrant up
``` ```
Pay attention, some OS (as debian buster, need to be sudo for this instruction : sudo vagrant up)
3. On your own computer, using a webrowser, go on http://10.0.0.9:8080/geonetwork (if IP address as default) or on http://aidmoit-geonetwork:8080/geonetwork 3. On your own computer, using a webrowser, go on http://10.0.0.9:8080/geonetwork (if IP address as default) or on http://aidmoit-geonetwork:8080/geonetwork
## GeoNetwork On server ## GeoNetwork On server
......
...@@ -79,6 +79,8 @@ ...@@ -79,6 +79,8 @@
file: file:
state: directory state: directory
path: "{{ hadoopUSRHome }}/tmp" path: "{{ hadoopUSRHome }}/tmp"
owner: hadoop
group: hadoop
- name: create a prod directory for hadoop - name: create a prod directory for hadoop
become: yes become: yes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment