1 Star 0 Fork 0

wangzy0327/hadoop-cluster-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
resize-cluster.sh 404 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangzy0327 提交于 2019-11-20 15:55 . init hadoop-cluster-docker project
#!/bin/bash
# N is the node number of hadoop cluster
N=$1
if [ $# = 0 ]
then
echo "Please specify the node number of hadoop cluster!"
exit 1
fi
# change slaves file
i=1
rm config/slaves
while [ $i -lt $N ]
do
echo "hadoop-slave$i" >> config/slaves
((i++))
done
echo ""
echo -e "\nbuild docker hadoop image\n"
# rebuild kiwenlau/hadoop image
sudo docker build -t kiwenlau/hadoop:1.0 .
echo ""
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangzy0327/hadoop-cluster-docker.git
git@gitee.com:wangzy0327/hadoop-cluster-docker.git
wangzy0327
hadoop-cluster-docker
hadoop-cluster-docker
master

搜索帮助