kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chen Wang <chen.apache.s...@gmail.com>
Subject change retention for a topic on the fly does not work
Date Tue, 11 Nov 2014 00:46:25 GMT
Hey guys,
i am using kafka_2.9.2-0.8.1.1

 bin/kafka-topics.sh --zookeeper localhost:2182 --alter --topic my_topic
 --config log.retention.hours.per.topic=48

It says:
Error while executing topic command requirement failed: Unknown
configuration "log.retention.hours.per.topic".
java.lang.IllegalArgumentException: requirement failed: Unknown
configuration "log.retention.hours.per.topic".
at scala.Predef$.require(Predef.scala:214)
at kafka.log.LogConfig$$anonfun$validateNames$1.apply(LogConfig.scala:138)
at kafka.log.LogConfig$$anonfun$validateNames$1.apply(LogConfig.scala:137)
at scala.collection.Iterator$class.foreach(Iterator.scala:772)
at
scala.collection.JavaConversions$JEnumerationWrapper.foreach(JavaConversions.scala:578)
at kafka.log.LogConfig$.validateNames(LogConfig.scala:137)
at kafka.log.LogConfig$.validate(LogConfig.scala:145)

Any idea?
Chen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message