Jmeter Kafka help needed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jmeter Kafka help needed

UserJMeter999
Hi Jmter users

Need your expertise to solve this below issue

We downloaded the jar file and kept in lib folder of Jmeter 3.2 as suggested in the link https://www.blazemeter.com/blog/apache-kafka-how-to-load-test-with-jmeter. We have JAVA 8 for the support and we also checked the environment variable, where Jmeter uses JDK. We got below input values for PepperBoxKafkaSampler Project team provided jaas and krb5 file and placed it under D drive

.Developer has given us   jaas.conf krb5.conf truststore.jks  .keytab file 


After posting the request we are getting below error ERROR 2018/06/01 18:12:47 ERROR - com.gslab.pepper.sampler.PepperBoxKafkaSampler: Failed to get broker information org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /brokers/ids

2018/06/01 18:12:48 ERROR - jmeter.threads.JMeterThread: Error while processing sampler 'Java Request - Updated with Details' : org.apache.kafka.common.KafkaException: Failed to construct kafka producer at org.apache.kafka.clients.producer.KafkaProducer. Caused by: org.apache.kafka.common.KafkaException: javax.security.auth.login.LoginException: Unable to obtain password from user at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:74) at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:60) at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:79) at org.apache.kafka.clients.producer.KafkaProducer.(KafkaProducer.java:271) Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Unknown Source) at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Unknown Source) at com.sun.security.auth.module.Krb5LoginModule.login(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.security.auth.login.LoginContext.invoke(Unknown Source) at javax.security.auth.login.LoginContext.access$000(Unknown Source)

Attached file with screenshots of sampler config and errors





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Jmeter Kafka Pepperbox Sampler Error.docx (176K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter Kafka help needed

Felix Schumacher
I haven't used Kafka with jmeter and the images are not informative, as the text is not readable.

Apart from that, I would check that the keytab referenced in the jaas.conf is at the location you expect.

Regards,
 Felix


Am 1. Juni 2018 22:24:37 MESZ schrieb JMeter User <[hidden email]>:

> Hi Jmter users
>
>Need your expertise to solve this below issue
>
>We downloaded the jar file and kept in lib folder of Jmeter 3.2 as
>suggested in the link
>https://www.blazemeter.com/blog/apache-kafka-how-to-
>load-test-with-jmeter. We have JAVA 8 for the support and we also
>checked
>the environment variable, where Jmeter uses JDK. We got below input
>values
>for PepperBoxKafkaSampler Project team provided jaas and krb5 file and
>placed it under D drive
>
>.Developer has given us   jaas.conf krb5.conf truststore.jks  .keytab
>file
>
>
>After posting the request we are getting below error ERROR 2018/06/01
>18:12:47 ERROR - com.gslab.pepper.sampler.PepperBoxKafkaSampler: Failed
>to
>get broker information
>org.apache.zookeeper.KeeperException$NoNodeException:
>KeeperErrorCode = NoNode for /brokers/ids
>
>2018/06/01 18:12:48 ERROR - jmeter.threads.JMeterThread: Error while
>processing sampler 'Java Request - Updated with Details' :
>org.apache.kafka.common.KafkaException: Failed to construct kafka
>producer
>at org.apache.kafka.clients.producer.KafkaProducer. Caused by:
>org.apache.kafka.common.KafkaException:
>javax.security.auth.login.LoginException:
>Unable to obtain password from user at org.apache.kafka.common.
>network.SaslChannelBuilder.configure(SaslChannelBuilder.java:74) at
>org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:60)
>at
>org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:79)
>at
>org.apache.kafka.clients.producer.KafkaProducer.(KafkaProducer.java:271)
>Caused by: javax.security.auth.login.LoginException: Unable to obtain
>password from user at com.sun.security.auth.module.
>Krb5LoginModule.promptForPass(Unknown Source) at
>com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Unknown
>Source) at com.sun.security.auth.module.Krb5LoginModule.login(Unknown
>Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
>sun.reflect.
>DelegatingMethodAccessorImpl.invoke(Unknown Source) at
>java.lang.reflect.Method.invoke(Unknown Source) at
>javax.security.auth.login.LoginContext.invoke(Unknown Source) at
>javax.security.auth.login.LoginContext.access$000(Unknown Source)
>
>Attached file with screenshots of sampler config and errors

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Jmeter Kafka help needed

UserJMeter999
Error in the log is

2018/06/05 13:55:04 ERROR - jmeter.threads.JMeterThread: Error while
processing sampler 'Java Request' : org.apache.kafka.common.KafkaException:
Failed to construct kafka producer
at
org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:321)
at
org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:181)
at
com.gslab.pepper.sampler.PepperBoxKafkaSampler.setupTest(PepperBoxKafkaSampler.java:116)
at
org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:188)
at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.kafka.common.KafkaException:
javax.security.auth.login.LoginException: Unable to obtain password from
user

at
org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:74)
at
org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:60)
at
org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:79)
at
org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:271)
... 6 more
Caused by: javax.security.auth.login.LoginException: Unable to obtain
password from user

at
com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:897)
at
com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:760)
at
com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
at org.apache.kafka.common.security.kerberos.Login.login(Login.java:298)
at org.apache.kafka.common.security.kerberos.Login.<init>(Login.java:104)
at
org.apache.kafka.common.security.kerberos.LoginManager.<init>(LoginManager.java:44)
at
org.apache.kafka.common.security.kerberos.LoginManager.acquireLoginManager(LoginManager.java:85)
at
org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:55)
... 9 more

2018/06/05 13:55:04 DEBUG - jmeter.control.GenericController: Calling next
on: org.apache.jmeter.control.LoopController
2018/06/05 13:55:04 INFO  - jmeter.threads.JMeterThread: Thread is done:
Thread Group 1-1
2018/06/05 13:55:04 INFO  - jmeter.threads.JMeterThread: Thread finished:
Thread Group 1-1
2018/06/05 13:55:04 DEBUG - jmeter.threads.ThreadGroup: Ending thread
Thread Group 1-1
2018/06/05 13:55:04 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
test listeners of end of test
2018/06/05 13:55:04 DEBUG - jmeter.protocol.java.sampler.JavaSampler:
StandardJMeterEngine@3d543d3d-Java Request testEnded
2018/06/05 13:55:04 WARN  - jmeter.engine.StandardJMeterEngine: Error
encountered during shutdown of
org.apache.jmeter.protocol.java.sampler.JavaSampler@3d543d3d
java.lang.NullPointerException
at
com.gslab.pepper.sampler.PepperBoxKafkaSampler.teardownTest(PepperBoxKafkaSampler.java:155)
at
org.apache.jmeter.protocol.java.sampler.JavaSampler.testEnded(JavaSampler.java:287)
at
org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:226)
at
org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:448)
at java.lang.Thread.run(Thread.java:748)

On Sat, Jun 2, 2018 at 1:12 PM, Felix Schumacher <
[hidden email]> wrote:

> I haven't used Kafka with jmeter and the images are not informative, as
> the text is not readable.
>
> Apart from that, I would check that the keytab referenced in the jaas.conf
> is at the location you expect.
>
> Regards,
>  Felix
>
>
> Am 1. Juni 2018 22:24:37 MESZ schrieb JMeter User <[hidden email]
> >:
> > Hi Jmter users
> >
> >Need your expertise to solve this below issue
> >
> >We downloaded the jar file and kept in lib folder of Jmeter 3.2 as
> >suggested in the link
> >https://www.blazemeter.com/blog/apache-kafka-how-to-
> >load-test-with-jmeter. We have JAVA 8 for the support and we also
> >checked
> >the environment variable, where Jmeter uses JDK. We got below input
> >values
> >for PepperBoxKafkaSampler Project team provided jaas and krb5 file and
> >placed it under D drive
> >
> >.Developer has given us   jaas.conf krb5.conf truststore.jks  .keytab
> >file
> >
> >
> >After posting the request we are getting below error ERROR 2018/06/01
> >18:12:47 ERROR - com.gslab.pepper.sampler.PepperBoxKafkaSampler: Failed
> >to
> >get broker information
> >org.apache.zookeeper.KeeperException$NoNodeException:
> >KeeperErrorCode = NoNode for /brokers/ids
> >
> >2018/06/01 18:12:48 ERROR - jmeter.threads.JMeterThread: Error while
> >processing sampler 'Java Request - Updated with Details' :
> >org.apache.kafka.common.KafkaException: Failed to construct kafka
> >producer
> >at org.apache.kafka.clients.producer.KafkaProducer. Caused by:
> >org.apache.kafka.common.KafkaException:
> >javax.security.auth.login.LoginException:
> >Unable to obtain password from user at org.apache.kafka.common.
> >network.SaslChannelBuilder.configure(SaslChannelBuilder.java:74) at
> >org.apache.kafka.common.network.ChannelBuilders.
> create(ChannelBuilders.java:60)
> >at
> >org.apache.kafka.clients.ClientUtils.createChannelBuilder(
> ClientUtils.java:79)
> >at
> >org.apache.kafka.clients.producer.KafkaProducer.(KafkaProducer.java:271)
> >Caused by: javax.security.auth.login.LoginException: Unable to obtain
> >password from user at com.sun.security.auth.module.
> >Krb5LoginModule.promptForPass(Unknown Source) at
> >com.sun.security.auth.module.Krb5LoginModule.
> attemptAuthentication(Unknown
> >Source) at com.sun.security.auth.module.Krb5LoginModule.login(Unknown
> >Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >at
> >sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
> >sun.reflect.
> >DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> >java.lang.reflect.Method.invoke(Unknown Source) at
> >javax.security.auth.login.LoginContext.invoke(Unknown Source) at
> >javax.security.auth.login.LoginContext.access$000(Unknown Source)
> >
> >Attached file with screenshots of sampler config and errors
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>