Skip to content

Instantly share code, notes, and snippets.

@wusuopubupt
Created June 23, 2017 08:50
Show Gist options
  • Save wusuopubupt/271802845ffb88fbd4eb793b9733b9fb to your computer and use it in GitHub Desktop.
Save wusuopubupt/271802845ffb88fbd4eb793b9733b9fb 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