Hi team, i encountered an error `_03:58:27.120_ [m...
# all-things-deployment
b
Hi team, i encountered an error
_03:58:27.120_ [main] WARN  o.s.w.c.s.XmlWebApplicationContext:558 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizationManagerFactory': Unsatisfied dependency expressed through field 'entityClient'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'javaEntityClientFactory': Unsatisfied dependency expressed through field '_entityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanAspectDao' defined in com.linkedin.gms.factory.entity.EbeanAspectDaoFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.linkedin.metadata.entity.ebean.EbeanAspectDao]: Factory method 'createInstance' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanServer' defined in com.linkedin.gms.factory.entity.EbeanServerFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.ebean.EbeanServer]: Factory method 'createServer' threw exception; nested exception is java.lang.NullPointerException
when running datahub-gms in minikube. i followed the deployment guide from https://datahubproject.io/docs/deploy/kubernetes and only change the mysql to my local mysql with these configuration (
datahub-helm/charts/prerequisites/values.yaml
)
Copy code
sql:
    datasource:
      host: "host.minikube.internal:3306"
      hostForMysqlClient: "host.minikube.internal"
      port: "3306"
      url: "jdbc:<mysql://host.minikube.internal:3306/datahub?verifyServerCertificate=false&useSSL=true&useUnicode=yes&characterEncoding=UTF-8&enabledTLSProtocols=TLSv1.2>"
      driver: "com.mysql.cj.jdbc.Driver"
      username: "datahub"
      password:
        secretRef: mysql-secrets-datahub
        secretKey: mysql-root-password
and here is the full log
e
did mysql-setup-job run correctly?
do you see db datahub with metadata_aspect_v2 table?
b
yes, both mysql-setup-job run correctly, and created 2 tables, one of them is metadata_aspect_v2 table
i managed to make it works, but still not sure why it works. and heres the changes that i made in
datahub-helm/charts/datahub/values.yaml
e
hmn the sql section is the same as above right?
so changing graph service solved it?
b
i don’t think so, since previously i also tried to use the elastic over neo4j but still getting the same error. i’ll try to re create my minikube and update the local chart to see whether the issue still persists.
e
Got it! Glad it worked out!!
b
i think i know whats the issue, its the connection string,
<jdbc://mysql>
i managed to make it simpler, i think it’s related to my sql installation in my local.
b
@breezy-camera-11182 Following up here- did u managed to get things working?
b
@big-carpet-38439 Yes! i did managed to get it working. it turns out related to mysql in my local installation, if i set the connection string just like this
jdbc:<mysql://host.minikube.internal:3306/datahub>
it works.
b
Wonderful!