update yarn dockerfile

This commit is contained in:
LingZhaoHui 2022-08-09 23:33:08 +08:00
parent 969e318d25
commit 043ad4c48d
4 changed files with 53 additions and 0 deletions

17
hadoop/README.md Normal file
View File

@ -0,0 +1,17 @@
## 环境搭建
```bash
sudo ./build.sh
```
hdfs路径
http://172.17.0.2:50070/explorer.html#/
http://172.17.0.2:50075/datanode.html
yarn路径
http://172.17.0.2:8088/cluster
http://172.17.0.2:8042/node

11
hadoop/build.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
docker pull harisekhon/hadoop
docker stop hadoop
docker rm hadoop
docker run -dit --name hadoop --privileged=true \
-p 8042 -p 8088 -p 19888 -p 50070 -p 50075 harisekhon/hadoop

13
kafka/build.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
docker pull bitnami/kafka
docker stop kafka
docker rm kafka
docker run -d --name kafka \
--network app-tier \
-e ALLOW_PLAINTEXT_LISTENER=yes \
-e KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper-server:2181 \
bitnami/kafka:latest

12
zookeeper/build.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
docker pull bitnami/zookeeper
docker stop zookeeper-server
docker rm zookeeper-server
docker run -d --name zookeeper-server \
--network app-tier \
-e ALLOW_ANONYMOUS_LOGIN=yes \
bitnami/zookeeper:latest