How to fix zookeeper error: cannot create directory '/pulsar/data' permission denied #20668
|
Hi, I'm new to pulsar, and trying to install it on my kubernetes cluster via the official guide: https://pulsar.apache.org/docs/3.0.x/helm-deploy/. However, the zookeeper keep crushing all the time. After checking with the logs, it complains that it can not access datadir. After searching around, find a soultion to fix it:strimzi/strimzi-kafka-operator#1720. Unfortunately, i failed, don't know why it doesn't make any effect. Firstly, i tried to modify the pods config directly via and get a error: And then i tried to patch the pods using command:
Also, i tried passing a yaml file with content blow while install pulsar via command But seems not working, so, how could i grant the right permission to make ZooKeeper to create data directory |
Replies: 1 comment 1 reply
|
And here is the full logs |
Finally, i fixed it by adding:
runAsUser: 0runAsGroup: 0beforefsGroup: 0:Just searching the
fsGroupand add two line in front of it