AnsweredAssumed Answered

Required parameter sentry.store.jdbc.url is missed

Question asked by nicolamarangoni on Jun 26, 2017
Latest reply on Aug 18, 2017 by prakhar

Greeting, I have a fresh install of 5.2.1.42646.GA on 4 Ubuntu 14.04.5 VM nodes.

Sentry doesn't start with the following logs:

2017-06-26 03:08:45 INFO SentryMain:83 - Configuring log4j to use [/opt/mapr/sentry/sentry-1.7.0/bin/../conf/log4j.properties]
2017-06-26 03:08:46 INFO SentryService:108 - Configured on address /0.0.0.0:8038
2017-06-26 03:08:46 INFO SentryService:274 - Attempting to start...
2017-06-26 03:08:46 INFO SentryService:315 - Waiting on future.get()
2017-06-26 03:08:46 INFO SentryService:205 - ProcessorFactory being used: org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessorFactory
2017-06-26 03:08:46 ERROR SentryService:178 - Error starting server
java.lang.IllegalStateException: Could not create org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessorFactory
at org.apache.sentry.service.thrift.SentryService.runServer(SentryService.java:214)
at org.apache.sentry.service.thrift.SentryService.call(SentryService.java:175)
at org.apache.sentry.service.thrift.SentryService.call(SentryService.java:71)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: Required parameter sentry.store.jdbc.url is missed
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
at org.apache.sentry.provider.db.service.persistent.SentryStore.<init>(SentryStore.java:134)
at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.<init>(SentryPolicyStoreProcessor.java:103)
at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessorFactory.register(SentryPolicyStoreProcessorFactory.java:31)
at org.apache.sentry.service.thrift.SentryService.runServer(SentryService.java:208)
... 6 more
2017-06-26 03:08:46 INFO SentryService:391 - ShutdownHook shutting down server
2017-06-26 03:08:46 INFO SentryService:280 - Attempting to stop...
2017-06-26 03:08:46 INFO SentryService:294 - Sentry thrift service is already stopped...
2017-06-26 03:08:46 INFO SentryService:305 - Sentry web service is already stopped...
2017-06-26 03:08:46 INFO SentryService:310 - Stopped...

However, I have a correct entry in /opt/mapr/sentry/sentry-1.7.0/conf/sentry-site.xml

<property>
<name>sentry.store.jdbc.url</name>
<value>jdbc:mysql://<hostname>:3306/sentry?createDatabaseIfNotExist=true</value>
</property>

What could be wrong?

Outcomes