oflebbe commented on a change in pull request #477: BIGTOP-3171. Update Kafka 
Puppet module for version 1.1.1
URL: https://github.com/apache/bigtop/pull/477#discussion_r257511937
 
 

 ##########
 File path: bigtop-deploy/puppet/modules/kafka/templates/server.properties
 ##########
 @@ -125,6 +125,15 @@ log.retention.check.interval.ms=60000
 # If log.cleaner.enable=true is set the cleaner will be enabled and individual 
logs can then be marked for log compaction.
 log.cleaner.enable=false
 
+# The replication factor for the offsets topic (set higher to ensure 
availability).
+# Internal topic creation will fail until the cluster size meets this 
replication factor requirement.
+<% if @offsets_topic_replication_factor.nil? -%>
+# Set to 1 for less than 3 nodes deployment to work.
+offsets.topic.replication.factor=1
+<% else -%>
+offsets.topic.replication.factor=<%= @offsets_topic_replication_factor %>
 
 Review comment:
   Great. LGTM +1 (Tiny remark : Do we really need the <% if 
@offsets_topic_replication_factor.nil? -%> in template, since there may be now 
way to set that value to nil ? And if it's nil == not sent the the file it is 
using the default value 1 anyway ?, you may disregard this comment)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to