You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by ni...@apache.org on 2015/08/18 08:53:43 UTC

samza git commit: SAMZA-756: Add kill-all.sh to samza-shell

Repository: samza
Updated Branches:
  refs/heads/master f9a667291 -> 6c4ecb532


SAMZA-756: Add kill-all.sh to samza-shell


Project: http://git-wip-us.apache.org/repos/asf/samza/repo
Commit: http://git-wip-us.apache.org/repos/asf/samza/commit/6c4ecb53
Tree: http://git-wip-us.apache.org/repos/asf/samza/tree/6c4ecb53
Diff: http://git-wip-us.apache.org/repos/asf/samza/diff/6c4ecb53

Branch: refs/heads/master
Commit: 6c4ecb53238b6663f9ebdabf9dbb59491de0beda
Parents: f9a6672
Author: Jordi Blasi Uribarri <jb...@nextel.es>
Authored: Mon Aug 17 23:53:26 2015 -0700
Committer: Yi Pan (Data Infrastructure) <yi...@linkedin.com>
Committed: Mon Aug 17 23:53:26 2015 -0700

----------------------------------------------------------------------
 samza-shell/src/main/bash/kill-all.sh | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/samza/blob/6c4ecb53/samza-shell/src/main/bash/kill-all.sh
----------------------------------------------------------------------
diff --git a/samza-shell/src/main/bash/kill-all.sh b/samza-shell/src/main/bash/kill-all.sh
new file mode 100644
index 0000000..da230a4
--- /dev/null
+++ b/samza-shell/src/main/bash/kill-all.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+[[ $JAVA_OPTS != *-Dlog4j.configuration* ]] && export JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:$(dirname $0)/log4j-console.xml"
+
+exec $(dirname $0)/run-class.sh org.apache.hadoop.yarn.client.cli.ApplicationCLI application -list | grep application_ | awk -F ' ' '{ print $1 }' | while read linea 
+do
+  $(dirname $0)/kill-yarn-job.sh $linea
+done