1 Star 0 Fork 0

大数据之路/hadoop-cluster

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
resize-cluster.sh 404 Bytes
一键复制 编辑 原始数据 按行查看 历史
心随梦飞 提交于 2024-07-08 19:24 . 初始化
#!/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/zhoulm-data/hadoop-cluster.git
git@gitee.com:zhoulm-data/hadoop-cluster.git
zhoulm-data
hadoop-cluster
hadoop-cluster
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385