Skip to content

Instantly share code, notes, and snippets.

@zyfnhct
Forked from wusuopubupt/batch-kill-yarn-app.sh
Created July 26, 2018 12:46
Show Gist options
  • Save zyfnhct/ee1b7c1f41afd93cc7d8cdce917961a0 to your computer and use it in GitHub Desktop.
Save zyfnhct/ee1b7c1f41afd93cc7d8cdce917961a0 to your computer and use it in GitHub Desktop.
batch mode to kill yarn applications
#!/bin/bash
yarn application -list | awk '{print $1}' | while read line;do
echo $line
yarn application -kill $line
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment