Appy created HBASE-17681:
----------------------------
Summary: Simplify ssh and 'Operation Not Permitted' issues when
our IT tests execute monkeys
Key: HBASE-17681
URL: https://issues.apache.org/jira/browse/HBASE-17681
Project: HBase
Issue Type: Improvement
Reporter: Appy
Assignee: Appy
{noformat}
Executing remote command: ps ux | grep proc_regionserver | grep -v grep | tr -s
' ' | cut -d ' ' -f2 | xargs kill -s SIGKILL , hostname:appy2-5.vpc.cloudera.com
util.Shell: Executing full command [/usr/bin/ssh appy2-5.vpc.cloudera.com
"sudo -u hbase ps ux | grep proc_regionserver | grep -v grep | tr -s ' ' | cut
-d ' ' -f2 | xargs kill -s SIGKILL"]
{noformat}
The issue with above command is:
- kill commands runs as the ssh'ed user, and if it's not hbase, it has to be
root
- which means, that either hbase or root needs to have passwordless access
setup to all the other hosts of the cluster, which may not be true in many
cases.
Generalizing it a bit so that it can also work with a setup when there is a
user (\*any\* user) in the cluster with passwordless access to other nodes, and
sudo permissions.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)