You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/01/25 03:40:53 UTC
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #8185: [Bug] [command not found] curl: command not found
github-actions[bot] commented on issue #8185:
URL: https://github.com/apache/dolphinscheduler/issues/8185#issuecomment-1020779766
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
dolphinScheduler on k8s by using helm
a shell script failed to run
![image](https://user-images.githubusercontent.com/36130371/150906209-f2b786ed-3451-4e35-8144-3d180d735fe1.png)
curl: command not found
jq: command not found
### What you expected to happen
it can work normally
### How to reproduce
dolphinscheduler on k8s by helm
create a shell type job
shell script is following
```
#!/bin/sh
for i in `cat course_data/jm_ip.txt`
do
echo ======$i======;
jobname_repeated=$(curl -s http://$i/v1/jobs/overview| jq '.jobs[]|select(.state=="RUNNNING")|.name'|uniq -d)
echo jobname_repeated:$jobname_repeated;
if [ -n "$jobname_repeated" ]
then
echo "flink jobname is repeated"
if [[ ${i} =~ 'dev' || ${i} =~ 'test' ]]
then
curl -d '{"title": "FLink任务名称重复告警", "url": "'"http://$i"'","message": "'"$jobname_repeated"'" , "state": "Firing"}' -H 'Content-Type: application/json' "http://course-test.inner.youdao.com/ops/alarm?origin=default&profile=dev&group=FlinkJobNameMonitor&phone=false"
else
curl -d '{"title": "FLink任务名称重复告警", "url": "'"http://$i"'", "message": "'"$jobname_repeated"'" , "state": "Firing"}' -H 'Content-Type: application/json' "http://course.inner.youdao.com/ops/alarm?origin=default&profile=prod&group=FlinkJobNameMonitor&phone=false"
fi
else
echo "flink jobname is normal"
fi
done
```
### Anything else
_No response_
### Version
2.0.2
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org