hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang Sen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HAWQ-1582) hawq ssh cmd bug when pipe in cmd
Date Wed, 24 Jan 2018 02:26:00 GMT
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:

h1. bug description
hawq ssh -h sdw2 -h localhost -e 'ls -1 | wc -l'
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):
[sdw2] ls -1 | wc -l
[sdw2] 23
[localhost] ls -1 | wc -l
[localhost] 20

While the output got is:
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
hawq ssh -h sdw2 -h localhost -e 'kill -9 $(pgrep lava)'
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

View raw message