<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Fail to start sentry service with external database in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/64590#M47488</link>
    <description>&lt;P&gt;Mind walking me through how you made this change via Cloudera Manager? Don't think I can edit the xml file directly. Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 07:57:25 GMT</pubDate>
    <dc:creator>rthebest</dc:creator>
    <dc:date>2018-02-14T07:57:25Z</dc:date>
    <item>
      <title>Fail to start sentry service with external database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/46730#M47486</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on cloudera manager 5.7.1 i have use this guide (&amp;nbsp;&lt;A href="http://www.cloudera.com/documentation/enterprise/latest/topics/sg_sentry_service_install.html#concept_zsk_pr5_1q__section_pwm_fsx_kq" target="_blank"&gt;http://www.cloudera.com/documentation/enterprise/latest/topics/sg_sentry_service_install.html#concept_zsk_pr5_1q__section_pwm_fsx_kq&lt;/A&gt; ) to install Sentry Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before to install service i have create an external MySql database with this commands:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mysql&amp;gt; create database sentry DEFAULT CHARACTER SET utf8;&lt;BR /&gt;Query OK, 1 row affected (0.00 sec)&lt;/P&gt;&lt;P&gt;mysql&amp;gt; grant all on sentry.* TO 'sentry'@'%' IDENTIFIED BY 'sentry_password';&lt;BR /&gt;Query OK, 0 rows affected (0.00 sec)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i try to start sentry service i received this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;exec /opt/cloudera/parcels/CDH-5.7.1-1.cdh5.7.1.p0.11/lib/sentry/bin/sentry --command service --log4jConf /var/run/cloudera-scm-agent/process/2713-sentry-SENTRY_SERVER/sentry-log4j.properties -conffile /var/run/cloudera-scm-agent/process/2713-sentry-SENTRY_SERVER/sentry-site.xml
Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.Exception: Error starting server
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at org.apache.sentry.service.thrift.SentryService.waitOnFuture(SentryService.java:312)
	at org.apache.sentry.service.thrift.SentryService$CommandImpl.run(SentryService.java:398)
	at org.apache.sentry.SentryMain.main(SentryMain.java:114)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.Exception: Error starting server
	at org.apache.sentry.service.thrift.SentryService.call(SentryService.java:172)
	at org.apache.sentry.service.thrift.SentryService.call(SentryService.java:72)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Could not create org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessorFactory
	at org.apache.sentry.service.thrift.SentryService.runServer(SentryService.java:207)
	at org.apache.sentry.service.thrift.SentryService.call(SentryService.java:168)
	... 5 more
Caused by: org.apache.sentry.provider.db.SentryNoSuchObjectException: No matching version found
	at org.apache.sentry.provider.db.service.persistent.SentryStore.getMSentryVersion(SentryStore.java:1453)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.getSentryVersion(SentryStore.java:1405)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.verifySentryStoreSchema(SentryStore.java:196)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.&amp;lt;init&amp;gt;(SentryStore.java:176)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.&amp;lt;init&amp;gt;(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:201)
	... 6 more&lt;/PRE&gt;&lt;P&gt;Do yuo have any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Simone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:45:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/46730#M47486</guid>
      <dc:creator>zimo80</dc:creator>
      <dc:date>2022-09-16T10:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fail to start sentry service with external database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/46734#M47487</link>
      <description>&lt;P&gt;I have solved adding this value into sentry-site.xml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&amp;lt;name&amp;gt;sentry.verify.schema.version&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt; false&amp;lt;/value&amp;gt;&amp;lt;description&amp;gt; value: true, false true Sentry store will verify the schema version in backed DB with expected version in jar. The service won't start if there's a mismatch &amp;lt;/description&amp;gt;&amp;lt;/property&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:01:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/46734#M47487</guid>
      <dc:creator>zimo80</dc:creator>
      <dc:date>2016-10-27T16:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fail to start sentry service with external database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/64590#M47488</link>
      <description>&lt;P&gt;Mind walking me through how you made this change via Cloudera Manager? Don't think I can edit the xml file directly. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 07:57:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/64590#M47488</guid>
      <dc:creator>rthebest</dc:creator>
      <dc:date>2018-02-14T07:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fail to start sentry service with external database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/64616#M47489</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Resolved, by deleting all tables in sentry database in MySQL and then recreating them from Cloudera Manager, and this time by logging into database as root instead of cm user.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:57:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fail-to-start-sentry-service-with-external-database/m-p/64616#M47489</guid>
      <dc:creator>rthebest</dc:creator>
      <dc:date>2018-02-14T20:57:51Z</dc:date>
    </item>
  </channel>
</rss>

