1
0
mirror of https://github.com/newnius/YAO-docs.git synced 2024-07-06 05:15:18 +00:00
This commit is contained in:
2020-05-04 15:28:56 +08:00
parent 057edbbac1
commit 1e0dc50608
2 changed files with 28 additions and 0 deletions

19
sbin/run_hdfs.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Run on all HDFS nodes, and update the conf files
exit;
docker run \
--name hdfs-node1 \
--hostname node1 \
--net host \
--add-host=$(node1):$(ip1) \
--add-host=$(node2):$(ip2) \
--add-host=$(node3):$(ip3) \
-d \
--restart always \
--mount type=bind,src=/data/hadoop/config,dst=/config/hadoop \
--mount type=bind,src=/data/hadoop/hdfs,dst=/tmp/hadoop-root \
--mount type=bind,src=/data/hadoop/logs,dst=/usr/local/hadoop/logs \
newnius/hadoop:2.7.4