Commit 01a6a305 authored by 赵建伟's avatar 赵建伟

update codes

parent 14447c1f
#!/bin/bash
if [ ! $# == 1 ]; then
echo "Please add applicationId param!"
exit 0
fi
/opt/hadoop-2.6.0-cdh5.16.1/bin/yarn application -kill $1
\ No newline at end of file
app_id=`/opt/hadoop-2.6.0-cdh5.16.1/bin/yarn application -list | grep portrait-monitor | awk '{print $1}'`
/opt/hadoop-2.6.0-cdh5.16.1/bin/yarn application -kill $app_id
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment