1 Star 0 Fork 8

liujie_10_12/gmall-realtime220309

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
realtime.sh 511 Bytes
一键复制 编辑 原始数据 按行查看 历史
lzc 提交于 2022-08-16 15:44 . update
#!/bin/bash
flink=/opt/module/flink-1.13.6/bin/flink
jar=/opt/gmall/realtime-1.0-SNAPSHOT.jar
apps=(
com.atguigu.realtime.app.dim.DimApp
)
running_apps=`$flink list 2>/dev/null | awk '/RUNNING/ {print \$(NF-1)}'`
for app in ${apps[*]} ; do
app_name=`echo $app | awk -F. '{print \$NF}'`
if [[ "${running_apps[@]}" =~ "$app_name" ]]; then
echo "$app_name 已经启动,无序重复启动...."
else
echo "启动应用: $app_name"
$flink run -d -c $app $jar
fi
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/liujie__10__twelve/gmall-realtime220309.git
git@gitee.com:liujie__10__twelve/gmall-realtime220309.git
liujie__10__twelve
gmall-realtime220309
gmall-realtime220309
master

搜索帮助