Comments (52)
Thank you for collaborate with the project giving us feedback!!' You will help us a lot if you can attach and example AVRO and an example Test Plan in order to be able to reproduce the error. If that is the case. Cheers
from kloadgen.
Hi Vitaliee,
I´ll check it later today and come you back.
Cheers
from kloadgen.
Hi @vitalee78 ,
I took a look into your problem I saw couple of thinks.
a) an issue in the our generic serialiser which I fixed in the branch linked to this issue
b) a miss configuration in your JMX file. In order to add the Key into the message there was a flag name keyed.message which need to be enable ("YES" value) like the image attached
I also took a look into your test plan file and fixed there.
testPlan - Copy.jmx.txt
Just remove the ".txt" and you will be able to try it.
Cheers!!
from kloadgen.
Hi, Jose!
Thank you very much, I`ll definitely try today.
from kloadgen.
Hi, Jose!
if look through ./kafka-avro-console-consumer then a error
but on version 2.1.3 it worked in avro format
if through ./kafka-console-consumer then no errors
from kloadgen.
HI Vitaliee,
my guess you are using the generic kafka sampler, that one only send the message as a normal Json so yo can read it with the normal kafka-console-consumer.. if you are expecting the binary payload that don´t do this transformation. May be you should try the kafka Sampler or the Confluent one which let you configure which serialiser class should be used.
That solve your problem?
Cheers!
from kloadgen.
Hi Jose!
I try Confluent, the message is not generated so the kafka is empty and the error is log Jmeter as follows
and I use serialiser class - GenericRecordSerializer for key and value.serializer
If Kafka Sampler, the message is generated and sent to kafka, but the error in kafka-avro-console-consumer...
and there is still a message in the log Jmeter - WARN, but maybe it`s not critical?
Help me understand what I'm doing wrong?
from kloadgen.
HI @vitalee78
is strange, can you please attach your latest test plan and current schema? I'll try to debug it and help you.
Cheers
from kloadgen.
from kloadgen.
Hi Vitaliee,
May is a matter of configuration.. I can send messages without no problem with generic and kafka, Confluent is failing because it cannot solve the schema name, but this is issue of my setup I guess.
I´m getting messages in the topic.....
from kloadgen.
Hi kszosze!
you are not tired of me yet? ))
yes it also works for me if I look in kafka-console-consumer
and if you look in kafka-avro-console-consumer, then an error.
Our application reads in the topic in avro format and therefore I check in kafka-avro-console-consumer
Also the app reads the key / value message into the GenericRecordSerializer
if in the key GenericRecordSerializer error
from kloadgen.
Hi Vitaliee,
is not a problem help and not, I'm not tired of you.
What I'm seeing is you are using the same serialiser for key and value. That's the problem, Key is not an Avro document, so this serialiser should be use. Can you please change it back to the StringSerialiser one please?
org.apache.kafka.common.serialization.StringSerializer
I think that gonna work for you.
Cheers
from kloadgen.
yes, did the key in two versions - StringSerialiser works
And I realized that I misunderstood the task, talked to a colleague developer. Our application reads separately the key with its avro schema and the value with its avro schema
And I don’t understand, but what is the correct way to draw up a test plan and it is possible to do this in a plugin?
We need the key to be sent to avro too
schemas.zip
from kloadgen.
Well, that's unusual, key usually are not codec in avro unless you where using the confluent system. Can you try using the io.confluent.kafka.serializers.KafkaAvroSerializer serialiser for the key?
from kloadgen.
yes, we are using the confluent system
I tried with ...KafkaAvroSerializer for the key
from kloadgen.
If you are using the confluent then your better option is go with the Confluent Sampler, it uses both confluent serialiser by default.. you tried that rigth? and give you some topic related issue?
from kloadgen.
Yes, tried Confluent Sampler, also an error as in the last screenshot
and give me please some topic related issue
from kloadgen.
Ok I'll take a look into it today with your example test plan and back to you asap.
from kloadgen.
Ok I´m gonna need the key schema too in order to see why it´s not finding it the schema registry. Can you provide it also?
Cheers!
from kloadgen.
schemas.zip
key schema and value schema
from kloadgen.
Hi Vitaliee,
after saw your Key Schema I realize we cannot handle it now. But we can implement it, it will take a couple days.
Are you interested in this feature so we will implement it?
Cheers
from kloadgen.
Hi kszosze!
Yes, we interested in this feature!
Thank you!
from kloadgen.
Privet Vitalee,
There is a branch linked to this ticket which a first approach for your request.
Is a breaking change, so you are gonna need to rewrite/tweak your test plan.
I upload one as an example about how to use it with your provided schemas.
Wish this gonna work for you.
TestPlans.jmx.txt
Cheers!!
from kloadgen.
Hi kszosze!
I will try to do it today
Thank you!
from kloadgen.
Hi kszosze!
trying to subtract testplan, error
from kloadgen.
Hi @vitalie,
are you using this branch https://github.com/corunet/kloadgen/tree/%2368_adding_avro_key_support ?
Can you please upload the JMX?
Cheers
from kloadgen.
sorry, I used old release
It works and now I can see our message, but in the topic the message sent to String?
because if you look in kafka-avro-console-consumer then the error
if you look in a standard consumer (kafka-console-consumer) it works fine
my JMX
TestPlans - Copy.jmx.txt
from kloadgen.
Ok i'll take a look asap
from kloadgen.
Ok i see.. Let's gonna change the Test plan for something like this...
ConfluentkafkaSampler as Java Request Sampler
and serializers should be io.confluent.kafka.serializers.KafkaAvroSerializer.
like this image
then you can see something like
using this command
kafka-avro-console-consumer --bootstrap-server kafka:9092 --topic matomo.matomo.matomo_log_action --group matomo
from kloadgen.
ok, I'll see it now
from kloadgen.
did, but I can't, there is an error on the jmeter side
message is not sent
from kloadgen.
Which version of JMeter are you using? It sounds the plugin jar hasn't build properly. That class is added in the build process as a dependency. Can you please double check there is only one kloadgen-plugin-X.X.X.jar in the lib/ext folder
from kloadgen.
Hi Vitaliee,
some new code had been merge in to master and bring it to this issue branch. There you will find a new Sampler, GenericBinaryKafkaSampler. Do you mind try this one?
Cheers!
from kloadgen.
yes, in the lib/ext folder is only one, kloadgen-plugin-3.1.0.jar
and I try new code
from kloadgen.
I tried using GenericBinaryKafkaSampler but again the error is like in the last screenshot
it looks like I'm doing something wrong
from kloadgen.
Well. does is really odd. Can you please send me yout apache-jmeter.... folder to my email jegarcia at corunet dot com
from kloadgen.
Hi Jose!
There was a conflict with another .jar, I removed it and there is no error
and reproduced another error, applied GenericBinaryKafkaSampler, GenericConfluentKafkaSampler and GenericKafkaSampler
also in the message the key missing {idaction: 123}
from kloadgen.
well, we are getting better ... I'm asuming those errors are with the latest jmx file I sent to you or the one you sent to me or one new mix of both? I need to know in order to solve you problem.
Cheers!!
from kloadgen.
with my JMX
TestPlans - Copy.jmx.txt
from kloadgen.
I believe you are not using the latest version of that branch.. mainly because with just your jmx and only changing port of Schema Registry and Kafka brokers it give a good answer
from kloadgen.
I using this branch - https://github.com/corunet/kloadgen/tree/%2368_adding_avro_key_support, right?
from kloadgen.
That's the right one. Just was a merge problem with latest changes in Master. I just fix and push them. Can you try it.
Sorry for that.
from kloadgen.
yes, it works right now!
though for some reason in the 'View Results Tree' report there is red text, but there are no errors in the kafka there are messages in avro
at the moment it suits us, thanks!
from kloadgen.
Red means There is an error during the process. Please check the response, it should show the broker answer.
from kloadgen.
Hi Vitaliee,
any news about the red thing or this branch let's you run your tests?
Cheers
from kloadgen.
Hi, Jose!
our testing is working fine now,
but with red text, I did not find the reason, during load I disable this report
from kloadgen.
Strange, may be in the response data you can find some answers.
I'll close this issue then.
Cheers
from kloadgen.
in the response data - topic: name_topic, partition: 0, offset: 2358125
I understand there is no crime
from kloadgen.
Forget it.. it was a tiny error in the response build. Is gonna be fixed in the next commit.
Sorry and thanks for the feedback!
from kloadgen.
ok,
that is, then I can take the build from the master?
from kloadgen.
Once I'll do the merge.. for now all changes are over the branch
from kloadgen.
ok,
thank you for the work done, now we are using it for our tasks.
we have another point when generating data, but this is not critical, so maybe we will turn again
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 2
- 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.