question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pulsar broker start failure when set functionsWorkerEnabled=true

See original GitHub issue

When i set functionsWorkerEnabled=true

$ bin/pulsar broker

I got exception like this:

17:40:27.945 [main] ERROR org.apache.pulsar.functions.worker.SchedulerManager - Failed to create producer to function assignment topic persistent://public/functions/assignments
org.apache.pulsar.client.api.PulsarClientException$BrokerMetadataException: Namespace missing local cluster name in clusters list: local_cluster=pulsar-qa ns=public/functions clusters=[standalone]
	at org.apache.pulsar.client.impl.ClientCnx.getPulsarClientException(ClientCnx.java:798) ~[org.apache.pulsar-pulsar-client-original-2.2.0-incubating-SNAPSHOT.jar:2.2.0-incubating-SNAPSHOT]
	at org.apache.pulsar.client.impl.ClientCnx.handlePartitionResponse(ClientCnx.java:409) ~[org.apache.pulsar-pulsar-client-original-2.2.0-incubating-SNAPSHOT.jar:2.2.0-incubating-SNAPSHOT]

My broker conf:

# Name of the cluster to which this broker belongs to
clusterName=pulsar-qa

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sijiecommented, Aug 7, 2018

@codelipenghui that’s correct. the functions_worker.yml was shipped for standalone deployment. It has to be updated for cluster deployment. Let me improve the documentation on how to enable function worker in cluster mode in #2327

0reactions
rocketramancommented, Oct 7, 2019

I have this same issue with running Pulsar on Kubernetes. I see that the script gen-yml-from-env.py is supposed to update functions_worker.yml, but I think the script is missing the value pulsarFunctionsCluster in INT_KEYS. I created a followup issue https://github.com/apache/pulsar/issues/5325.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Apache Pulsar
a broker is started with functionsWorkerEnabled=true , but pulsarFunctionsCluster in the conf/functions_worker.yml file is not set to the correct cluster.
Read more >
Troubleshooting Apache Pulsar Issues | Fusion 5.6
Troubleshooting Apache Pulsar in Fusion Clear Pulsar data Use this ... If the STS cannot scale up, one of the pods in sequence...
Read more >
Understanding How Apache Pulsar Works - Jack Vanlightly
a new ledger is created. when a write to a bookie fails. When a bookie cannot serve a write then the Pulsar broker...
Read more >
4. Pulsar Internals - Mastering Apache Pulsar [Book] - O'Reilly
We'll start by looking at each of Pulsar's components (see Figure 4-1): ... Does this mean that for every write Pulsar broker has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found