zhongjiajie opened a new issue #6507: URL: https://github.com/apache/dolphinscheduler/issues/6507
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description * [ ] Use `#!/usr/bin/env bash` instead of `#!/bin/sh` * [ ] Use `bash` to call shell command instead of `sh` * [ ] Change get current dir command from `workDir=dirname $0; workDir=cd ${workDir};pwd` to `"$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"` * [ ] Add `set -euo pipefail` to exit when error in script running * [ ] Add functions to reduce duplicate code, such as init array `workersGroupMap` code * [ ] Use `deleteall` instead of `rmr` when delete zookeeper node * [ ] Check environment before run other job, we have java version < 9, bash version > 4, ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
