Github user huor commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/1211#discussion_r110327071
  
    --- Diff: tools/bin/hawqpylib/hawqlib.py ---
    @@ -203,6 +203,13 @@ def check_hostname_equal(remote_host, user = ""):
         cmd = "hostname"
         result_local, local_hostname, stderr_remote  = local_ssh_output(cmd)
         result_remote, remote_hostname, stderr_remote = remote_ssh_output(cmd, 
remote_host, user)
    +    if result_remote != 0:
    +        print "Execute command '%s' failed with return code %d on %s." % 
(cmd, result_remote, remote_host)
    +        print "Either ssh connection fails or command exits with error. 
Details:"
    +        print stderr_remote
    +        print "For ssh connection issue, please make sure passwordless ssh 
is enabled or check remote host."
    --- End diff --
    
    The remote command only check if the host exist.
    ```
    if result_remote != 0:
        print "Execute command '%s' failed with return code %d on %s." % (cmd, 
result_remote, remote_host)
        print "Please check ssh connection and make sure passwordless ssh is 
enabled."
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to