Date
1 - 2 of 2
Invalid value 10737418240 for configuration segment.bytes: Not a number of type INT
yohei@...
Hi,
I am trying to apply custom segment.bytes value to kafka topic as follows.
----
I am trying to apply custom segment.bytes value to kafka topic as follows.
----
apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaTopic
metadata:
labels:
strimzi.io/cluster: default
name: myname
namespace: data
namespace: data
spec:
config:
cleanup.policy: compact
segment.bytes: 10737418240
partitions: 3
replicas: 2
topicName: mytopicname
---
But I got this error on broker log.
2020-03-13 06:50:44,048 INFO [Admin Manager on Broker 2]: Invalid config value for resource ConfigResource(type=TOPIC, name='mytopicname'): Invalid value 10737418240 for configuration segment.bytes: Not a number of type INT (kafka.server.AdminManager) [data-plane-kafka-request-handler-2]
segment.bytes in my manifest file looks valid integer. What is wrong with this configuration?
Thank you.
But I got this error on broker log.
2020-03-13 06:50:44,048 INFO [Admin Manager on Broker 2]: Invalid config value for resource ConfigResource(type=TOPIC, name='mytopicname'): Invalid value 10737418240 for configuration segment.bytes: Not a number of type INT (kafka.server.AdminManager) [data-plane-kafka-request-handler-2]
segment.bytes in my manifest file looks valid integer. What is wrong with this configuration?
Thank you.
Tom Bentley
Hi,
segment.bytes uses the Java int type, which has a maximum possible value of 2147483647 (2^31-1). So although 10737418240 is a valid number it's too big.
Kind regards,
Tom
On Fri, Mar 13, 2020 at 8:47 AM <yohei@...> wrote:
Hi,
I am trying to apply custom segment.bytes value to kafka topic as follows.
----
apiVersion: kafka.strimzi.io/v1beta1kind: KafkaTopicmetadata:labels:strimzi.io/cluster: defaultname: myname
namespace: dataspec:config:cleanup.policy: compactsegment.bytes: 10737418240partitions: 3replicas: 2topicName: mytopicname---
But I got this error on broker log.
2020-03-13 06:50:44,048 INFO [Admin Manager on Broker 2]: Invalid config value for resource ConfigResource(type=TOPIC, name='mytopicname'): Invalid value 10737418240 for configuration segment.bytes: Not a number of type INT (kafka.server.AdminManager) [data-plane-kafka-request-handler-2]
segment.bytes in my manifest file looks valid integer. What is wrong with this configuration?
Thank you.