Comments (8)
Hi Jozef,
headers are sent, but they are not added to the Sampler Object, which is the one you are reading there.
Iยดll create a branch to add them since you request it.
Cheers!!
from kloadgen.
Hi @JozefTomko
There is a branh + PR with the changes I made after your request. Do you mind test it if it solve your problem?
Regards
from kloadgen.
Hi @kszosze
Thanks for your quick response.
From the new branch, there is some issue with Kafka producer properties. Both schema registry and specific schema retrieve successfully, but fails producing kafka.
Error:
2020-07-17 10:32:01,483 ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'Kafka Producer Properties'.
org.apache.kafka.common.KafkaException: Failed to construct kafka producer
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:457) ~[kafka-clients-2.0.0.jar:?]
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:304) ~[kafka-clients-2.0.0.jar:?]
at net.coru.kloadgen.sampler.ConfluentKafkaSampler.setupTest(ConfluentKafkaSampler.java:238) ~[kloadgen-2.0.0.jar:?]
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:195) ~[ApacheJMeter_java.jar:5.2.1]
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:627) ~[ApacheJMeter_core.jar:5.2.1]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:551) ~[ApacheJMeter_core.jar:5.2.1]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:490) [ApacheJMeter_core.jar:5.2.1]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) [ApacheJMeter_core.jar:5.2.1]
at java.lang.Thread.run(Thread.java:830) [?:?]
Caused by: io.confluent.common.config.ConfigException: Missing required configuration "schema.registry.url" which has no default value.
at io.confluent.common.config.ConfigDef.parse(ConfigDef.java:251) ~[kloadgen-plugin-2.0.0.jar:?]
at io.confluent.common.config.AbstractConfig.<init>(AbstractConfig.java:78) ~[kloadgen-plugin-2.0.0.jar:?]
at io.confluent.kafka.serializers.AbstractKafkaAvroSerDeConfig.<init>(AbstractKafkaAvroSerDeConfig.java:136) ~[kloadgen-plugin-2.0.0.jar:?]
at io.confluent.kafka.serializers.KafkaAvroSerializerConfig.<init>(KafkaAvroSerializerConfig.java:32) ~[kloadgen-plugin-2.0.0.jar:?]
at io.confluent.kafka.serializers.KafkaAvroSerializer.configure(KafkaAvroSerializer.java:48) ~[kloadgen-plugin-2.0.0.jar:?]
at org.apache.kafka.common.serialization.ExtendedSerializer$Wrapper.configure(ExtendedSerializer.java:60) ~[kafka-clients-2.0.0.jar:?]
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:364) ~[kafka-clients-2.0.0.jar:?]
... 8 more
from kloadgen.
HI @JozefTomko
weird, I tested yesterday before commit the branch.
Can you describe how are you performing the test?
Using the guy, standalone....
Cheers
from kloadgen.
Hi @kszosze
I build the project using "mvn clean install -P standalone".
After adding kloadgen-plugin-2.0.0.jar file to lib/ext I run Jmeter in GUI and create new project, add each Kafka config element,
configure connection to schema registry successfully, download specific schema and using ConfluentKafkaSampler java request try to generate kafka message.
There is no issue with issue with the current master version, except the header.
running Jmeter 5.2.1
Java jdk-13.0.2
from kloadgen.
Hi @JozefTomko,
Problem had been fixed. Can you try that branch?
Cheers!!
from kloadgen.
Hi @JozefTomko,
any joy with that?
Cheers!
from kloadgen.
Hi @kszosze
Sorry for the slow response.
Branch works great, issue is fixed. Thanks for fast resolve.
from kloadgen.
Related Issues (20)
- [Issue]: Avro schemas with references HOT 6
- [Documentation Issue]: Postman collection to import HOT 1
- [Issue]: `sasl.jaas.config` property is not applied HOT 5
- [Issue]: Error when all fields are optional in AVRO
- [Issue]: Error with JMeter 5.6.2 in connection with plugin kloadgen 5.6.5 HOT 18
- [Issue]: Complete the funcionality of "Value Schema File Serializer" HOT 1
- [Issue]: Can't load an Avro schema serializer from register.
- [Issue]: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target HOT 4
- [Issue]: NullPointerException when starting a test with a Key Schema File Serializer Config HOT 1
- [Issue]: JSON value shema serializer exception HOT 1
- [Issue]: Simple Key Config serializer exception HOT 1
- [Issue]: Error while processing sampler: 'Kafka Broker'. java.lang.NullPointerException: Cannot invoke "String.toUpperCase()" because "registry" is null HOT 10
- [Issue]: Consumer does not show consumed messages in JMeter
- [Kloadgen]: I want to integrate Kloadgen with Google-PubSub
- [Issue]: kloadgen based on jmeter 5.6.3
- [Issue]: Unable to produce messages with bytes field in Protobuf schema using kloadgen plugin HOT 5
- [Issue]: sasl.jaas.config property is not applied HOT 4
- Starting a simple project with Simple Value Config and Simple Key Config HOT 5
- Error filtering class org.apache.commons.compress.harmony.pack200.Segment, it will be ignored java.lang.IncompatibleClassChangeError: class org.apache.commons.compress.harmony.pack200.Segment can not implement org.objectweb.asm.ClassVisitor, because it is not an interface (org.objectweb.asm.ClassVisitor is in unnamed module of loader org.apache.jmeter.DynamicClassLoader @65ab7765)[Issue]: HOT 6
- [Issue]: Parameter values are not taking properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kloadgen.