Repository: incubator-hawq Updated Branches: refs/heads/HAWQ-682 [created] d0b8379d3
HAWQ-682 Include ignore-bad-hosts option in hawq init master command to avoid syncup failures during setting default bucket number Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/d0b8379d Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/d0b8379d Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/d0b8379d Branch: refs/heads/HAWQ-682 Commit: d0b8379d34574f22e94536562f403a515215ffbd Parents: 7755978 Author: Bhuvnesh Chaudhary <[email protected]> Authored: Fri Apr 15 14:55:25 2016 -0700 Committer: Bhuvnesh Chaudhary <[email protected]> Committed: Fri Apr 15 14:55:25 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/d0b8379d/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")
