Repository: incubator-hawq Updated Branches: refs/heads/master 775597818 -> e45f405c5
HAWQ-682: hawq init master fails to syncup hawq-site xml if there is a segment host down (bhuvnesh2703) Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/e45f405c Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/e45f405c Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/e45f405c Branch: refs/heads/master Commit: e45f405c527eb23e5eb108edd7474617289645e7 Parents: 7755978 Author: Bhuvnesh Chaudhary <[email protected]> Authored: Fri Apr 15 20:55:53 2016 -0700 Committer: Bhuvnesh Chaudhary <[email protected]> Committed: Fri Apr 15 20:55:53 2016 -0700 ---------------------------------------------------------------------- tools/bin/hawq_ctl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/e45f405c/tools/bin/hawq_ctl ---------------------------------------------------------------------- diff --git a/tools/bin/hawq_ctl b/tools/bin/hawq_ctl index 91ac814..d592d25 100755 --- a/tools/bin/hawq_ctl +++ b/tools/bin/hawq_ctl @@ -256,8 +256,9 @@ class HawqInit: self.default_hash_table_bucket_number = buckets logger.info("Set default_hash_table_bucket_number as: %s" % self.default_hash_table_bucket_number) - cmd = "hawq config -c default_hash_table_bucket_number -v %s --skipvalidation -q > /dev/null" % \ - self.default_hash_table_bucket_number + ignore_bad_hosts = '--ignore-bad-hosts' if opts.ignore_bad_hosts else '' + cmd = "hawq config -c default_hash_table_bucket_number -v %s --skipvalidation -q %s > /dev/null" % \ + (self.default_hash_table_bucket_number, ignore_bad_hosts) result = local_ssh(cmd, logger) if result != 0: logger.error("Set default_hash_table_bucket_number failed")
