Commit ae927442 authored by Decoupes Remy's avatar Decoupes Remy
Browse files

configure own computer to access to HDFS web ui

No related merge requests found
Showing with 9 additions and 5 deletions
+9 -5
...@@ -82,11 +82,15 @@ Then run the script [ansible-launch.sh](ansible-launch.sh) : ...@@ -82,11 +82,15 @@ Then run the script [ansible-launch.sh](ansible-launch.sh) :
## Deploy cluster HDFS with multiple VMs ## 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)
2. Declare those IP for ansible provision in [vars](playbook/roles/hosts-file/vars/main.yml) 2. Declare those IP for ansible provision in [vars](playbook/roles/hosts-file/vars/main.yml)
3. in cli : start your multiple VM from this [directory : vagrant/cluster](vagrant/cluster) : 3. Configure your own computer to access to your nodes using their hostname
```shell
vim /etc/hosts
```
4. in cli : start your multiple VM from this [directory : vagrant/cluster](vagrant/cluster) :
```shell ```shell
vagrant up vagrant up
``` ```
4. Format HDFS : 5. Format HDFS :
* ssh on namenode * ssh on namenode
* in cli : as user hadoop : change directory & format HDFS * in cli : as user hadoop : change directory & format HDFS
```shell ```shell
...@@ -94,16 +98,16 @@ Then run the script [ansible-launch.sh](ansible-launch.sh) : ...@@ -94,16 +98,16 @@ Then run the script [ansible-launch.sh](ansible-launch.sh) :
cd /usr/local/hadoop/bin/ cd /usr/local/hadoop/bin/
hdfs namenode -format hdfs namenode -format
``` ```
5. Start HDFS deamon on your cluser 6. Start HDFS deamon on your cluser
* ssh on namenode * ssh on namenode
* in cli : as root : start service hadoop * in cli : as root : start service hadoop
```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. * **WORK In Progress** : systemd will tell you something wrong happens but cluster is working anyway.
6. 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
if default : http://10.0.0.10:9870 if default : http://10.0.0.10:9870
## Deploy cluster HDFS on servers ## Deploy cluster HDFS on servers
work in progress work in progress
\ No newline at end of file
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