Error message: Namespace missing local cluster name in clusters list
Failed to get partitioned topic metadata: org.apache.pulsar.client.api.PulsarClientException$BrokerMetadataException: Namespace missing local cluster name in clusters list: local_cluster=xyz ns=public/functions clusters=[standalone]
The error message displays when any of the following cases occurs:
functionsWorkerEnabled=true
, but pulsarFunctionsCluster
in the conf/functions_worker.yml
file is not set to the correct cluster.functionsWorkerEnabled=true
, while brokers in one cluster run well, brokers in the other cluster do not work well.Workaround
If any of these cases happen, follow the instructions below to fix the problem.
Disable function workers by setting functionsWorkerEnabled=false
, and restart brokers.
Get the current cluster list of the public/functions
namespace.
bin/pulsar-admin namespaces get-clusters public/functions
Check if the cluster is in the cluster list. If not, add it and update the list.
bin/pulsar-admin namespaces set-clusters --clusters <existing-clusters>,<new-cluster> public/functions
After setting the cluster successfully, enable function workers by setting functionsWorkerEnabled=true
.
Set the correct cluster name for the pulsarFunctionsCluster
parameter in the conf/functions_worker.yml
file.
Restart brokers.