refactor(executor-manager): 使用sync同款jar更新方式

This commit is contained in:
2024-03-01 15:18:30 +08:00
parent 36c31df2c1
commit 7dc38383c5
6 changed files with 111 additions and 31 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash
timestamp=`date +%s%N`
jar_prefix=${jarPrefix}
jar_name=${jarName}
echo "Now version: <#noparse>${timestamp}</#noparse>"
curl ${runtime.downloadUrl}/<#noparse>${jar_name}</#noparse> -o <#noparse>/tmp/${jar_prefix}-${timestamp}.jar</#noparse>
hadoop fs -put <#noparse>/tmp/${jar_prefix}-${timestamp}.jar</#noparse> ${uploadPath}