Repository: incubator-hawq
Updated Branches:
  refs/heads/master 10c5bb8a1 -> a9c1cee64


HAWQ-1160. Hawq checkperf does not handle hostfile correctly


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/a9c1cee6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/a9c1cee6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/a9c1cee6

Branch: refs/heads/master
Commit: a9c1cee64fcc0b470438e1fdc0cc29b07d007764
Parents: 10c5bb8
Author: stanlyxiang <[email protected]>
Authored: Wed Nov 16 15:54:59 2016 +0800
Committer: ivan <[email protected]>
Committed: Tue Dec 6 10:42:08 2016 +0800

----------------------------------------------------------------------
 tools/bin/gpcheckperf | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a9c1cee6/tools/bin/gpcheckperf
----------------------------------------------------------------------
diff --git a/tools/bin/gpcheckperf b/tools/bin/gpcheckperf
index f933c90..48850f3 100755
--- a/tools/bin/gpcheckperf
+++ b/tools/bin/gpcheckperf
@@ -351,6 +351,10 @@ def runSetup():
        print '--------------------'
     okCount = 0
     try:
+        #check hostfile if have -f opt
+        if GV.opt['-f']:
+            if not os.path.exists(GV.opt['-f']):
+                sys.exit("[Error] unable to find hostfile: %s" % GV.opt['-f'])
        #check python reachable
        if GV.opt['-v']: print '[Info] verify python interpreter exists'
        (ok, out) = gpssh('python -c print')

Reply via email to