1 Star 0 Fork 0

eaglet/hadoop-cluster-docker2.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
resize-cluster.sh 400 Bytes
一键复制 编辑 原始数据 按行查看 历史
eaglet 提交于 2018-12-05 15:24 . update:tags:2.1
#!/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 e4glet/hadoop image
sudo docker build -t e4glet/hadoop:2.0 .
echo ""
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/e4glet/hadoop-cluster-docker2.0.git
[email protected]:e4glet/hadoop-cluster-docker2.0.git
e4glet
hadoop-cluster-docker2.0
hadoop-cluster-docker2.0
master

搜索帮助