@@ -35,22 +35,25 @@ data:
35
35
}
36
36
37
37
server.properties : |-
38
- # Licensed to the Apache Software Foundation (ASF) under one or more
39
- # contributor license agreements. See the NOTICE file distributed with
40
- # this work for additional information regarding copyright ownership.
41
- # The ASF licenses this file to You under the Apache License, Version 2.0
42
- # (the "License"); you may not use this file except in compliance with
43
- # the License. You may obtain a copy of the License at
44
- #
45
- # http://www.apache.org/licenses/LICENSE-2.0
46
- #
47
- # Unless required by applicable law or agreed to in writing, software
48
- # distributed under the License is distributed on an "AS IS" BASIS,
49
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
- # See the License for the specific language governing permissions and
51
- # limitations under the License.
52
-
53
- # see kafka.server.KafkaConfig for additional details and defaults
38
+ ############################# Log Basics #############################
39
+
40
+ # A comma seperated list of directories under which to store log files
41
+ log.dirs=/var/lib/kafka/data/topics
42
+
43
+ # The default number of log partitions per topic. More partitions allow greater
44
+ # parallelism for consumption, but this will also result in more files across
45
+ # the brokers.
46
+ num.partitions=1
47
+
48
+ default.replication.factor=3
49
+
50
+ min.insync.replicas=2
51
+
52
+ auto.create.topics.enable=true
53
+
54
+ # The number of threads per data directory to be used for log recovery at startup and flushing at shutdown.
55
+ # This value is recommended to be increased for installations with data dirs located in RAID array.
56
+ num.recovery.threads.per.data.dir=1
54
57
55
58
############################# Server Basics #############################
56
59
96
99
# The maximum size of a request that the socket server will accept (protection against OOM)
97
100
socket.request.max.bytes=104857600
98
101
99
-
100
- ############################# Log Basics #############################
101
-
102
- # A comma seperated list of directories under which to store log files
103
- log.dirs=/tmp/kafka-logs
104
-
105
- # The default number of log partitions per topic. More partitions allow greater
106
- # parallelism for consumption, but this will also result in more files across
107
- # the brokers.
108
- num.partitions=1
109
-
110
- default.replication.factor=3
111
-
112
- min.insync.replicas=2
113
-
114
- auto.create.topics.enable=true
115
-
116
- # The number of threads per data directory to be used for log recovery at startup and flushing at shutdown.
117
- # This value is recommended to be increased for installations with data dirs located in RAID array.
118
- num.recovery.threads.per.data.dir=1
119
-
120
102
############################# Internal Topic Settings #############################
121
103
# The replication factor for the group metadata internal topics "__consumer_offsets" and "__transaction_state"
122
104
# For anything other than development testing, a value greater than 1 is recommended for to ensure availability such as 3.
@@ -149,7 +131,7 @@ data:
149
131
# from the end of the log.
150
132
151
133
# The minimum age of a log file to be eligible for deletion due to age
152
- log.retention.hours=168
134
+ log.retention.hours=-1
153
135
154
136
# A size-based retention policy for logs. Segments are pruned from the log as long as the remaining
155
137
# segments don't drop below log.retention.bytes. Functions independently of log.retention.hours.
@@ -169,7 +151,7 @@ data:
169
151
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
170
152
# You can also append an optional chroot string to the urls to specify the
171
153
# root directory for all kafka znodes.
172
- zookeeper.connect=localhost :2181
154
+ zookeeper.connect=zookeeper :2181
173
155
174
156
# Timeout in ms for connecting to zookeeper
175
157
zookeeper.connection.timeout.ms=6000
@@ -185,21 +167,6 @@ data:
185
167
group.initial.rebalance.delay.ms=0
186
168
187
169
log4j.properties : |-
188
- # Licensed to the Apache Software Foundation (ASF) under one or more
189
- # contributor license agreements. See the NOTICE file distributed with
190
- # this work for additional information regarding copyright ownership.
191
- # The ASF licenses this file to You under the Apache License, Version 2.0
192
- # (the "License"); you may not use this file except in compliance with
193
- # the License. You may obtain a copy of the License at
194
- #
195
- # http://www.apache.org/licenses/LICENSE-2.0
196
- #
197
- # Unless required by applicable law or agreed to in writing, software
198
- # distributed under the License is distributed on an "AS IS" BASIS,
199
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- # See the License for the specific language governing permissions and
201
- # limitations under the License.
202
-
203
170
# Unspecified loggers and loggers with additivity=true output to server.log and stdout
204
171
# Note that INFO only applies to unspecified loggers, the log level of the child logger is used otherwise
205
172
log4j.rootLogger=INFO, stdout
0 commit comments