[ 
https://issues.apache.org/jira/browse/HAWQ-560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15205683#comment-15205683
 ] 

ASF GitHub Bot commented on HAWQ-560:
-------------------------------------

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

    https://github.com/apache/incubator-hawq/pull/473#discussion_r56931724
  
    --- Diff: tools/bin/hawq_ctl ---
    @@ -182,6 +182,18 @@ class HawqInit:
                 logger.warn("Set standby host name failed")
             return result
     
    +    def set_number_by_datanodes_num(self):
    +        reuslt = 0
    +        if self.hosts_count_number < 4:
    +            # Set output.replace-datanode-on-failure to false if datanode 
number less than 4.
    +            logger.info("Set output.replace-datanode-on-failure to false 
as %s datanode detected" % self.hosts_count_number)
    +            logger.info("If you actually have more than 4 datanodes, 
please set it to 'true'")
    +            cmd = "hawq config -c 'output.replace-datanode-on-failure'  -v 
'false' --skipvalidation -q > /dev/null"
    --- End diff --
    
    the parameter is in hdfs client


> Set 'output.replace-datanode-on-failure' depend on datanodes number
> -------------------------------------------------------------------
>
>                 Key: HAWQ-560
>                 URL: https://issues.apache.org/jira/browse/HAWQ-560
>             Project: Apache HAWQ
>          Issue Type: New Feature
>          Components: Command Line Tools
>            Reporter: Radar Lei
>            Assignee: Radar Lei
>
> Set 'output.replace-datanode-on-failure' depend on datanode number.
> By default, we should set this value while hawq cluster init. To set this 
> value automatically, we assume segment number is the same as datanode number.
> When datanodes < 4, change the default value from true to false.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to