diff --git a/hadoop/README.md b/hadoop/README.md new file mode 100644 index 0000000..50f57c1 --- /dev/null +++ b/hadoop/README.md @@ -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 + + diff --git a/hadoop/build.sh b/hadoop/build.sh new file mode 100755 index 0000000..0b375cb --- /dev/null +++ b/hadoop/build.sh @@ -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 + diff --git a/kafka/build.sh b/kafka/build.sh new file mode 100755 index 0000000..0b089e3 --- /dev/null +++ b/kafka/build.sh @@ -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 diff --git a/zookeeper/build.sh b/zookeeper/build.sh new file mode 100755 index 0000000..ae8c75d --- /dev/null +++ b/zookeeper/build.sh @@ -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