Compare commits

...

10 Commits

Author SHA1 Message Date
cd6ddcb16d Actualizar 'pruebas_spark.md' 2024-02-08 21:28:06 -05:00
143c8e3e9e Actualizar 'README.md' 2022-12-23 23:32:03 -05:00
4a1701d101 Actualizar 'README.md' 2021-04-04 19:54:23 -05:00
5e81fc4832 fotos hardware 2021-04-04 19:50:19 -05:00
117f9ac8ef Actualizar 'pruebas_spark.md' 2021-04-03 21:58:16 -05:00
45611bb725 fotos spark 2021-04-03 21:49:39 -05:00
9f192cdbc1 Añadir 'pruebas_spark.md' 2021-04-03 21:48:25 -05:00
af0067b8eb Actualizar 'README.md' 2021-04-03 10:46:26 -05:00
d3ab0c848f Actualizar 'README.md' 2021-04-03 10:30:59 -05:00
84a6104bf6 Actualizar 'README.md' 2021-04-03 10:18:33 -05:00
6 changed files with 83 additions and 9 deletions

View File

@@ -2,27 +2,39 @@
Pruebas de creación de un grupo de clusters con raspberry pi y orange pi Pruebas de creación de un grupo de clusters con raspberry pi y orange pi
![Foto 1](fotos/foto_1.jpg)
![Foto 2](fotos/foto_2.jpg)
## ToDo ## ToDo
- [x] Diseño Soporte. - [x] Diseño Soporte.
- [ ] Instalación Hardware y cableado - [ ] Instalación Hardware y cableado
- [ ] Instalación Sistema operativo - [x] Instalación Sistema operativo
- [ ] Configuración de red - [x] Configuración de red
- [ ] Pruebas de red - [x] Pruebas de red
- [ ] Backup de sistema operativo con dd - [ ] Backup de sistema operativo con dd
- [ ] Instalacion Hadoop - [ ] Instalacion Hadoop
- [ ] Pruebas Hadoop - [ ] Pruebas Hadoop
- [ ] Instalacion Spark - [x] Instalacion Spark
- [ ] Pruebas de Spark - [x] Pruebas de Spark
## Maquinas ## Maquinas
Maquina | Descripcion | usuario | ip | host | Maquina | Descripcion | usuario | ip | host |
:------------ | :-------------| :------------- | :-------------| :------------- :------------ | :-------------| :------------- | :-------------| :-------------
mdc_mq1 | RaspberryPi 3| pi | 192.168.1.105 | mdc_mq1 mdc_mq1 | RaspberryPi 3| mdchaparror | 192.168.1.105 | mdc_mq1
mdc_mq2 | RaspberryPi 2| pi | 192.168.1.171 | mdcmq2 mdc_mq2 | RaspberryPi 2| mdchaparror | 192.168.1.171 | cluster_slave2
mdc_mq3 | OrangePi PC| mdcmq3 | 192.168.1.172 | mdcmq3 mdc_mq3 | OrangePi PC| mdchaparror | 192.168.1.172 | cluster_master
mdc_mq4 | OrangePi PC| mdcmq4 | 192.168.1.173 | mdcmq4 mdc_mq4 | OrangePi PC| mdchaparror | 192.168.1.173 | cluster_slave1
sudo nano /etc/hosts
```
192.168.1.172 clustermaster
192.168.1.173 cluster_slave1
192.168.1.171 cluster_slave2
```
### Especificación OrangePi PC ### Especificación OrangePi PC
@@ -97,4 +109,9 @@ Weight | 38g
## Referencias ## Referencias
[http://www.orangepi.org/orangepipc/](http://www.orangepi.org/orangepipc/) [http://www.orangepi.org/orangepipc/](http://www.orangepi.org/orangepipc/)
[https://www.armbian.com/orange-pi-pc/](https://www.armbian.com/orange-pi-pc/) [https://www.armbian.com/orange-pi-pc/](https://www.armbian.com/orange-pi-pc/)
[http://bailiwick.io/2015/07/07/create-your-own-apache-spark-cluster-using-raspberry-pi-2/](http://bailiwick.io/2015/07/07/create-your-own-apache-spark-cluster-using-raspberry-pi-2/)
[https://www.dinofizzotti.com/blog/2020-04-10-raspberry-pi-cluster-part-1-provisioning-with-ansible-and-temperature-monitoring-using-prometheus-and-grafana/](https://www.dinofizzotti.com/blog/2020-04-10-raspberry-pi-cluster-part-1-provisioning-with-ansible-and-temperature-monitoring-using-prometheus-and-grafana/)

BIN
fotos/foto_1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 MiB

BIN
fotos/foto_2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

57
pruebas_spark.md Normal file
View File

@@ -0,0 +1,57 @@
# Pruebas Cluster spark
## Comandos:
### Instalar Java
```
sudo apt install -y openjdk-8-jdk
```
### Iniciar master
```
ssh cluster_master ~/Documentos/spark/sbin/start-master.sh
```
### Detener master
```
ssh cluster_master ~/Documentos/spark/sbin/stop-master.sh
```
![master](fotos/spark/master_spark.png)
### Iniciar Workers
```
ssh cluster_master ~/Documentos/spark/sbin/start-workers.sh
```
### Detener Workers
```
ssh cluster_master ~/Documentos/spark/sbin/stop-workers.sh
```
![master](fotos/spark/workers_spark.png)
## Carga de archivos
Para cargar datos es necesario enviarlos a todos los nodos , se podria enviar a cada nodo con **scp** o crear un archivo con el nombre del host de cada nodo.
```bash
for i in `cat slaves`; do
scp data.csv $i:~/dataSpark/
done
```
### Crear carpeta de datos
Todo:
- [ ] montar carpeta compartida Samba
```bash
for i in `cat slaves`; do
ssh $i mkdir ~/dataSpark
done
```