Hey folks ! I still have some issue trying to depl...
# all-things-deployment
r
Hey folks ! I still have some issue trying to deploy the helm chart on minikube... Having permission denied issue for bitnami mysql service. If anyone here succeeded to install it... Some help will be appreciated :') !
b
could you share the error and logs
r
b
could you try running beow command
helm install prerequisites datahub/datahub-prerequisites --set kafka.volumePermissions.enabled=true --set kafka.zookeeper.volumePermissions.enabled=true -n demo --debug
r
Well, since yesterday i'm trying to use microk8s instead of minikube
could be microk8s fault now
never had this one with minikube
b
yes , the command i shared was for permission issue in minikube
r
Ok let me try using minikube cluster
strange thin is the helm deployment working good on Azure AKS Cluster
do you advise me minikue over microk8s ?
b
yes please
r
here we go i test with minikube
with this as options :
--set mysql.volumePermissions.enabled=true --set kafka.volumePermissions.enabled=true --set kafka.zookeeper.volumePermissions.enabled=true
b
In order to properly support the required persistent volume claims for the Elasticsearch StatefulSet, the
default-storageclass
and
storage-provisioner
minikube addons must be enabled. Please install below addson https://github.com/elastic/helm-charts/tree/main/elasticsearch/examples/minikube#:~:text=minikube%20addons%20enab[…]20enable%20storage%2Dprovisioner
r
let me try, untill now having this one :
ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];
Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
thx
b
and then run
helm upgrade --install prerequisites datahub/datahub-prerequisites -n <namespace>
r
well i did uninstall šŸ˜ž my bad
b
this time try without using any --set option
r
okay
Well still issue with ES ans kafka
and schema registry
b
what is the error ?
r
For kafka :
kafka.common.InconsistentClusterIdException: The Cluster ID 5FeW5yMdQk60_3xwFtoxpw doesn't match stored clusterId Some(re7FV8x2S9WPZlxDzBPHMw) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
at kafka.server.KafkaServer.startup(KafkaServer.scala:218)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
For ES :
ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];
Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
b
Try these steps - • helm uninstall prerequisites -n demo • docker volume prune • helm upgrade --install prerequisites datahub/datahub-prerequisites --set elasticsearch.securityContext.privileged=true --set elasticsearch.securityContext.runAsUser=0 --set kafka.volumePermissions.enabled=true --set kafka.zookeeper.volumePermissions.enabled=true -n demo
r
well thanks again i try this
Warning Failed 2m15s (x11 over 4m9s) kubelet Error: container's runAsUser breaks non-root policy (pod: "elasticsearch-master-0_duke-demo1(8bf6a93e-c0e1-4ddd-ba4e-f901ce18bbf1)", container: elasticsearch)
[2022-09-02 115735,317] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID 1bcbnrhES-C1xEwRYNeZSg doesn't match stored clusterId Some(re7FV8x2S9WPZlxDzBPHMw) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
at kafka.server.KafkaServer.startup(KafkaServer.scala:218)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
Started again without any options
Well we can see it's quite more complicated than this tutorial : https://datahubproject.io/docs/deploy/kubernetes šŸ˜„ at least for me
By the way i start my minikue as is :
minikube start --memory 12288 --cpus 6 --nodes 3 --driver=docker --force
Maybe i should remove the driver
docker*