Page MenuHomec4science

list-running-jobs.sh
No OneTemporary

File Metadata

Created
Tue, Feb 25, 06:13

list-running-jobs.sh

#!/bin/bash
[[ -z $SCRIPT_CONFIG_PATH ]] && echo "SCRIPT_CONFIG_PATH not set!" && exit 1
. $SCRIPT_CONFIG_PATH/config_nodes.sh
if [ $# == 2 ] && [ $2 == "-c" ]; then
clush -w $CLUSH_NODES 'ps ax | grep \"org.apache.hadoop.yarn.sls.SLSRunner\" | grep -v grep | wc -l'
else
clush -w $CLUSH_NODES 'ps ax | grep \"org.apache.hadoop.yarn.sls.SLSRunner\" | grep -v grep'
fi

Event Timeline