Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function-Worker - State storage client is not done initializing. Please try again in a little while. #284

Open
allsof opened this issue May 9, 2023 · 0 comments

Comments

@allsof
Copy link

allsof commented May 9, 2023

Hello, I'm new on Git.

I'm using helm chart (https://github.com/datastax/pulsar-helm-chart/blob/master/helm-chart-sources/pulsar/values.yaml) and was trying install "Pulsar Datastax" function-worker thanks to Apache Pulsar documentation (https://pulsar.apache.org/docs/2.10.x/functions-worker/).

I'm using "Brokersts" (statefulset), I've enabled "functionsWorkerEnabled=true" and enabled "StateStorage" to true.

Thanks to this link (https://github.com/datastax/pulsar-helm-chart/blob/master/helm-chart-sources/pulsar/templates/function/function-configmap.yaml), i have enabled "StateStorage" and nothing else, so this variable "stateStorageServiceUrl: {{ include "pulsar.bkConnectStringOne" . }}" should be configure automatically ?

When i deploy my helm chart, i can create function but when i'm trying to query with "putstate()" or "querystate()" it tell me that :
"I have no name!@pulsar-bastion-id:/pulsar$ bin/pulsar-admin functions putstate \

--tenant public
--namespace default
--name wordcount
--state "{"key":"test", "stringValue":"hello pulsar"}"
State storage client is not done initializing. Please try again in a little while.

Reason: State storage client is not done initializing. Please try again in a little while."

I also check the "conf/functions_worker.yml" in the "bastion" pods and it seem that the "statestorage" is commented.
I followed the documentation given above but that didn't work. I'm don't know how to manage this. The "stateStorageServiceUrl: " should fill alone when i enable the statestorage no ? or i have to add this manually on the helm chart.

Can someone please help me on this please ?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant