Yang Sen created HAWQ-1582:
------------------------------

             Summary: hawq ssh cmd bug when pipe in cmd
                 Key: HAWQ-1582
                 URL: https://issues.apache.org/jira/browse/HAWQ-1582
             Project: Apache HAWQ
          Issue Type: Bug
          Components: Command Line Tools
            Reporter: Yang Sen
            Assignee: Radar Lei
             Fix For: 2.3.0.0-incubating


h1. bug description
{code:bash}
hawq ssh -h sdw2 -h localhost -e 'ls -1 | wc -l'
{code}
When running this command, the expected action is that `ls -1 | wc -l` is 
executed in each host. The expected output is (the number may be different):
{code:bash}
[sdw2] ls -1 | wc -l
[sdw2] 23
[localhost] ls -1 | wc -l
[localhost] 20
{code}

While the output got is:
{code:bash}
45
{code}
The result looks like `ls -l` was executed in each host and the output of `hawq 
ssh -h sdw2 -h localhost -e 'ls -1'` was redirect to pipe to `wc -l`.

h2. Another related issue
{code:bash}
hawq ssh -h sdw2 -h localhost -e 'kill -9 $(pgrep lava)'
{code}
This command expects to kill process named lava in each host. While `$(pgrep 
lava)` is executed in localhost, and program gets the process id, for example 
55555. And then `kill -9 55555` is executed in each host, which is definitely 
not match with our expect.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to