https://linen.dev logo
Title
t

Thomas Turner

05/25/2023, 1:21 PM
Looking for some help running pulsar perf. I’ve gone on to one of our broker instances and run
./bin/pulsar-perf produce test-topic
and it just hangs where i’m expecting to see console output. Does anyone have any suggestions? Adding
-a <token>
doesn’t seem to help either.
a

Alexander Preuß

05/25/2023, 1:40 PM
I suppose you have authentication enabled, right? In that case, what
authenticationProviders
are registered in the
broker.conf
?
t

Thomas Turner

05/25/2023, 1:41 PM
Yeah,
pulsar-admin
works just fine for example, without specifying the provider or token
I’ll just check whats registered
# Authentication provider name list, which is comma separated list of class names
authenticationProviders=org.apache.pulsar.broker.authentication.AuthenticationProviderToken
a

Alexander Preuß

05/25/2023, 1:45 PM
Does it work using
pulsar-client produce
? The
pulsar-admin
goes against a different endpoint so it’s not comparable
Ah so it’s using token authentication. You should be able to make it work using the following:
./bin/pulsar-perf produce \
--auth_plugin org.apache.pulsar.client.impl.auth.AuthenticationToken \
--auth-params token:<YOUR-TOKEN> \
test-topic
t

Thomas Turner

05/25/2023, 1:51 PM
So
/pulsar-client produce test-topic -m "tesT"
this seemed to work as
test-topic
has been created
just trying your suggestion now
It still seems to hang, not sure how long its expected to take to start up?
a

Alexander Preuß

05/25/2023, 1:56 PM
Weird, it should start immediately giving some info logs about its config
t

Thomas Turner

05/25/2023, 2:00 PM
Yeah i’m not sure what else to try
a

Alexander Preuß

05/25/2023, 2:01 PM
Is there still sufficient memory available on the broker?
t

Thomas Turner

05/25/2023, 2:04 PM
i’ve got about 1gb free
i tried that
exit-on-failure
flag too but no luck there
a

Alexander Preuß

05/25/2023, 2:06 PM
Yeah that should only help if it’s already trying to produce, but it sounds like there is already an issue on startup
t

Thomas Turner

05/25/2023, 2:06 PM
yeah it seems so
a

Alexander Preuß

05/25/2023, 2:12 PM
I think I’m out of ideas too. Can you try running the tool from your local machine instead?
t

Thomas Turner

05/25/2023, 2:13 PM
Sure, should i just copy the script off of the instance?
a

Alexander Preuß

05/25/2023, 2:13 PM
You can just download the respective binaries from here
t

Thomas Turner

05/25/2023, 2:14 PM
ah thanks
hmmm, works locally it seems 🤔
i think thats ok for my use case but just weird
👍 1
n

Nick Pocock

05/25/2023, 2:52 PM
You could try running with
--debug
, might see some more output @Thomas Turner
t

Thomas Turner

05/26/2023, 7:14 AM
Thanks both, think its in a pretty good spot now
🙌 1