kloadgen unsupported serializer
"Gregg, John E." <[email protected]> Fri, 28 Mar 2025 15:17:38 +0000
| Newsgroups | gmane.comp.jakarta.jmeter.user |
|---|---|
| Message-ID | <MN2PR11MB4728C95BABAF56239EFA42B6BFA02@MN2PR11MB4728.namprd11.prod.outlook.com> |
--_000_MN2PR11MB4728C95BABAF56239EFA42B6BFA02MN2PR11MB4728namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Friends,
I'm using JMeter 5.6 with KLoadGen.
I'm trying to configure a producer to use Avro for the value but string ser=
ializer for the key. Is that supported? It works fine from my java code b=
ut the plugin doesn't like it.
My config has schema registry, producer, and KLG - Value Schema Serializer =
Config, which seems to be the value. In addition, I've tried no key serial=
izer, KLG - Key Schema Serializer Config (but I don't really want this,) an=
d KLG - Simple Key Config.
With KLG - Simple Key Config, I tried setting the key class type to string =
and the serializer to StringSerializer. In this case, I get this partial s=
tack trace:
com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer
at com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(Sampl=
erUtil.java:427) ~[kloadgen-5.6.12.jar:?]
at com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaPro=
ducerSampler.java:73) ~[kloadgen-5.6.12.jar:?]
I get that same error with no key serializer at all.
With the key schema serialization config, I get the same message but from a=
different location in the code:
com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer
at com.sngular.kloadgen.sampler.SamplerUtil.getBaseLoadGenerator(Sample=
rUtil.java:471) ~[kloadgen-5.6.12.jar:?]
at com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(Sampl=
erUtil.java:425) ~[kloadgen-5.6.12.jar:?]
at com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaPro=
ducerSampler.java:73) ~[kloadgen-5.6.12.jar:?]
What am I doing wrong?
Thanks
--_000_MN2PR11MB4728C95BABAF56239EFA42B6BFA02MN2PR11MB4728namp_--