pepper-box
pepper-box copied to clipboard
jMeter 5.x and Kafka 2.x support.
Hello, I'm trying to make this work on JMeter 5.2.1 & Kafka 2.4.0I installed using brew on my mac and even when I put the JAR file on the folder "/usr/local/Cellar/jmeter/5.2.1/libexec/lib/ext" .. When I do right click on the thread group, add -> config element... Pepperbox is missing.
I notice that all screencaps I see are from JMeter 3.... this plugin works with 5.x?
I tried the command mvn clean install -Djmeter.version=5.2.1 -Dkafka.version=2.4.0 but at the end I get this error
[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/smoneta/github/pepper-box/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java:[19,40] cannot find symbol symbol: class SecurityProtocol location: package org.apache.kafka.common.protocol [ERROR] /Users/smoneta/github/pepper-box/src/main/java/com/gslab/pepper/input/SchemaParser.java:[7,31] package org.apache.commons.lang does not exist [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 05:46 min [INFO] Finished at: 2020-02-18T09:45:16-03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project pepper-box: Compilation failure: Compilation failure: [ERROR] /Users/smoneta/github/pepper-box/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java:[19,40] cannot find symbol [ERROR] symbol: class SecurityProtocol [ERROR] location: package org.apache.kafka.common.protocol [ERROR] /Users/smoneta/github/pepper-box/src/main/java/com/gslab/pepper/input/SchemaParser.java:[7,31] package org.apache.commons.lang does not exist [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Thanks.
Any updates on this? Facing similar issue
Just an update on this.
I managed to build it without any parameter. Just mvn clean install and I got it working using Jmeter 5.x and Kafka 2.4.
@rafaeltuelho were you able to compile with Jmeter 5.x and Kafka 2.4 by just adding the versions directly in the pom.xml? Like this:

I get the following output when I run:
mvn clean install -Djmeter.version=5.0 -Dkafka.version=2.4.0


@rafaeltuelho were you able to compile with Jmeter 5.x and Kafka 2.4 by just adding the versions directly in the pom.xml? Like this:
@escanoru I just built it as is didn't change the JMeter and Kafka versions... Got the generated JAR as is and dropped it inside my JMeter 5 JMETER_HOME/lib/ext/ dir and voila! Worked fine here. I used it for a simple use case... Not sure if it will work for everything.
try branch "jmeter3.2_kafka10.2" , just change jmeter version 3.2 to 3.1 in pom.xml. I used "mvn clean install " and generating jar successfully for me. I am using Jmeter 5.2.1 and kafka version 2.4.0. and connecting to kafka server successfully.
try branch "jmeter3.2_kafka10.2" , just change jmeter version 3.2 to 3.1 in pom.xml. I used "mvn clean install " and generating jar successfully for me. I am using Jmeter 5.2.1 and kafka version 2.4.0. and connecting to kafka server successfully.
If you just change the jmeter version inside the pom.xml then the kafka client version will still 1.0..2 not 2.4.0 ,so at the end you can actually connect to the kafka server but it won't be able to use the latest kafka features and fixes from the generated jar as this is has an older version. My knowledge in java is very limited to try to make it to generate the jar with the latest version of jmeter and kafka. Thank you for your help :)
I'm trying to build this with:
mvn clean install -Djmeter.version=5.3 -Dkafka.version=2.2.0
Also getting similar error:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /code/pepper-box/src/main/java/com/gslab/pepper/input/SchemaParser.java:[7,31] package org.apache.commons.lang does not exist
[ERROR] /code/pepper-box/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java:[19,40] cannot find symbol
symbol: class SecurityProtocol
location: package org.apache.kafka.common.protocol
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.436s
[INFO] Finished at: Wed Oct 07 12:51:05 UTC 2020
[INFO] Final Memory: 24M/262M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project pepper-box: Compilation failure: Compilation failure:
[ERROR] /code/pepper-box/src/main/java/com/gslab/pepper/input/SchemaParser.java:[7,31] package org.apache.commons.lang does not exist
[ERROR] /code/pepper-box/src/main/java/com/gslab/pepper/sampler/PepperBoxKafkaSampler.java:[19,40] cannot find symbol
[ERROR] symbol: class SecurityProtocol
[ERROR] location: package org.apache.kafka.common.protocol
Any update / support added for this jmeter & kafka version? The Kafka version I'm using is: kafka_2.11-2.2.0
Any update on this issue? i'm seeing the same issue when i run mvn clean install -Djmeter.version=5.4.1 -Dkafka.version=2.2.1
Same on latest version. ¿Project Dead?