[FLINK-17794][tests] Tear down installed software in reverse order
[FLINK-17794][tests] Tear down installed software in reverse order

Tear down installed software in reverse order in Jepsen tests. This
mitigates the issue that sometimes YARN's NodeManager directories cannot
be removed using 'rm -rf' because Flink processes keep running and
generate files after the YARN NodeManager is shut down. rm -r removes
files recursively but if files are created in the background
concurrently, the command can still fail with a non-zero exit code.

This closes #12249.

twalthr/flink,sunjincheng121/flink,greghogan/flink,tony810430/flink,kl0u/flink,aljoscha/flink,gyfora/flink,darionyaphet/flink,rmetzger/flink,darionyaphet/flink,sunjincheng121/flink,GJL/flink,tony810430/flink,aljoscha/flink,jinglining/flink,gyfora/flink,aljoscha/flink,greghogan/flink,jinglining/flink,rmetzger/flink,tony810430/flink,apache/flink,apache/flink,kl0u/flink,aljoscha/flink,StephanEwen/incubator-flink,godfreyhe/flink,apache/flink,darionyaphet/flink,kaibozhou/flink,greghogan/flink,tillrohrmann/flink,jinglining/flink,zentol/flink,kl0u/flink,kaibozhou/flink,clarkyzl/flink,StephanEwen/incubator-flink,kaibozhou/flink,greghogan/flink,wwjiang007/flink,gyfora/flink,lincoln-lil/flink,GJL/flink,apache/flink,twalthr/flink,jinglining/flink,godfreyhe/flink,darionyaphet/flink,StephanEwen/incubator-flink,tillrohrmann/flink,rmetzger/flink,rmetzger/flink,wwjiang007/flink,rmetzger/flink,darionyaphet/flink,tony810430/flink,clarkyzl/flink,zjureel/flink,tillrohrmann/flink,xccui/flink,zjureel/flink,wwjiang007/flink,lincoln-lil/flink,sunjincheng121/flink,tzulitai/flink,lincoln-lil/flink,tillrohrmann/flink,godfreyhe/flink,xccui/flink,wwjiang007/flink,xccui/flink,tzulitai/flink,kl0u/flink,clarkyzl/flink,tzulitai/flink,StephanEwen/incubator-flink,zjureel/flink,wwjiang007/flink,zentol/flink,GJL/flink,tzulitai/flink,jinglining/flink,tony810430/flink,lincoln-lil/flink,xccui/flink,sunjincheng121/flink,zjureel/flink,godfreyhe/flink,kaibozhou/flink,lincoln-lil/flink,tillrohrmann/flink,tony810430/flink,jinglining/flink,greghogan/flink,greghogan/flink,GJL/flink,wwjiang007/flink,gyfora/flink,tillrohrmann/flink,twalthr/flink,clarkyzl/flink,StephanEwen/incubator-flink,godfreyhe/flink,aljoscha/flink,zjureel/flink,tzulitai/flink,kaibozhou/flink,zentol/flink,xccui/flink,gyfora/flink,lincoln-lil/flink,zjureel/flink,tzulitai/flink,rmetzger/flink,rmetzger/flink,apache/flink,zentol/flink,clarkyzl/flink,gyfora/flink,godfreyhe/flink,godfreyhe/flink,zentol/flink,zjureel/flink,twalthr/flink,aljoscha/flink,xccui/flink,zentol/flink,wwjiang007/flink,StephanEwen/incubator-flink,GJL/flink,twalthr/flink,zentol/flink,tony810430/flink,GJL/flink,lincoln-lil/flink,twalthr/flink,apache/flink,tillrohrmann/flink,kaibozhou/flink,xccui/flink,kl0u/flink,kl0u/flink,twalthr/flink,apache/flink,gyfora/flink,sunjincheng121/flink,sunjincheng121/flink