<?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: Sentry thrift API protocol version mismatch in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/81909#M24091</link>
    <description>&lt;P&gt;&lt;BR /&gt;I want to ask where to find the document of sentry API .&lt;/P&gt;
&lt;P&gt;I try to read the source code of sentry,however ,I can’t get the point .&lt;/P&gt;
&lt;P&gt;I don’t know how to call the apache sentry API for priviledge in my app.&lt;/P&gt;
&lt;P&gt;who can help me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2018 14:26:51 GMT</pubDate>
    <dc:creator>pkaQu</dc:creator>
    <dc:date>2018-11-05T14:26:51Z</dc:date>
    <item>
      <title>Sentry thrift API protocol version mismatch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/39197#M24087</link>
      <description>&lt;P&gt;hi：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CDH5.5.1 impala+sentry，thirft api protocol versoin mismatch,catalog service can not been started：&lt;/P&gt;&lt;PRE&gt;Error initialializing Catalog. Please run 'invalidate metadata'
Java exception follows:
com.cloudera.impala.catalog.CatalogException: Error updating authorization policy: 
	at com.cloudera.impala.catalog.CatalogServiceCatalog.reset(CatalogServiceCatalog.java:359)
	at com.cloudera.impala.service.JniCatalog.&amp;lt;init&amp;gt;(JniCatalog.java:94)
Caused by: com.cloudera.impala.common.ImpalaRuntimeException: Error refreshing authorization policy, current policy state may be inconsistent. Running 'invalidate metadata' may resolve this problem: 
	at com.cloudera.impala.util.SentryProxy.refresh(SentryProxy.java:306)
	at com.cloudera.impala.catalog.CatalogServiceCatalog.reset(CatalogServiceCatalog.java:357)
	... 1 more
Caused by: java.util.concurrent.ExecutionException: java.lang.AssertionError: Sentry thrift API protocol version mismatch: Client thrift version is: 1 , server thrift verion is 2. Server Stacktrace: org.apache.sentry.provider.db.SentryThriftAPIMismatchException: Sentry thrift API protocol version mismatch: Client thrift version is: 1 , server thrift verion is 2
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.validateClientVersion(SentryPolicyStoreProcessor.java:856)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.list_sentry_roles_by_group(SentryPolicyStoreProcessor.java:515)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$list_sentry_roles_by_group.getResult(SentryPolicyService.java:1013)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$list_sentry_roles_by_group.getResult(SentryPolicyService.java:998)
	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
	at org.apache.sentry.provider.db.service.thrift.SentryProcessorWrapper.process(SentryProcessorWrapper.java:35)
	at org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
	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)

	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
	at com.cloudera.impala.util.SentryProxy.refresh(SentryProxy.java:302)
	... 2 more
Caused by: java.lang.AssertionError: Sentry thrift API protocol version mismatch: Client thrift version is: 1 , server thrift verion is 2. Server Stacktrace: org.apache.sentry.provider.db.SentryThriftAPIMismatchException: Sentry thrift API protocol version mismatch: Client thrift version is: 1 , server thrift verion is 2
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.validateClientVersion(SentryPolicyStoreProcessor.java:856)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.list_sentry_roles_by_group(SentryPolicyStoreProcessor.java:515)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$list_sentry_roles_by_group.getResult(SentryPolicyService.java:1013)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$list_sentry_roles_by_group.getResult(SentryPolicyService.java:998)
	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
	at org.apache.sentry.provider.db.service.thrift.SentryProcessorWrapper.process(SentryProcessorWrapper.java:35)
	at org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
	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)

	at org.apache.sentry.service.thrift.Status.throwIfNotOk(Status.java:110)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyServiceClientDefaultImpl.listRolesByGroupName(SentryPolicyServiceClientDefaultImpl.java:231)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyServiceClientDefaultImpl.listRoles(SentryPolicyServiceClientDefaultImpl.java:274)
	at com.cloudera.impala.util.SentryPolicyService.listAllRoles(SentryPolicyService.java:335)
	at com.cloudera.impala.util.SentryProxy$PolicyReader.run(SentryProxy.java:104)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
	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)&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rube&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:11:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/39197#M24087</guid>
      <dc:creator>rube</dc:creator>
      <dc:date>2022-09-16T10:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry thrift API protocol version mismatch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/39203#M24088</link>
      <description>&lt;P&gt;What version of sentry are you running? Do you have some stray jars somewhere in the classpath that Catalog can be picking up?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 10:42:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/39203#M24088</guid>
      <dc:creator>Bharathv</dc:creator>
      <dc:date>2016-03-31T10:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry thrift API protocol version mismatch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/39237#M24089</link>
      <description>sentry-core-common-1.5.1-cdh5.5.1.jar&lt;BR /&gt;The test environment and the producting environment have the same problem.</description>
      <pubDate>Fri, 01 Apr 2016 01:59:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/39237#M24089</guid>
      <dc:creator>rube</dc:creator>
      <dc:date>2016-04-01T01:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry thrift API protocol version mismatch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/39349#M24090</link>
      <description>I have solved this problem.&lt;BR /&gt;I install impala-kudu sentry-provider-common-1.4.0-cdh5.5.0-SNAPSHOT.jar,and this mismatch cdh5.5.1's sentry.&lt;BR /&gt;&lt;BR /&gt;rube</description>
      <pubDate>Tue, 05 Apr 2016 07:07:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/39349#M24090</guid>
      <dc:creator>rube</dc:creator>
      <dc:date>2016-04-05T07:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry thrift API protocol version mismatch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/81909#M24091</link>
      <description>&lt;P&gt;&lt;BR /&gt;I want to ask where to find the document of sentry API .&lt;/P&gt;
&lt;P&gt;I try to read the source code of sentry,however ,I can’t get the point .&lt;/P&gt;
&lt;P&gt;I don’t know how to call the apache sentry API for priviledge in my app.&lt;/P&gt;
&lt;P&gt;who can help me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:26:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-thrift-API-protocol-version-mismatch/m-p/81909#M24091</guid>
      <dc:creator>pkaQu</dc:creator>
      <dc:date>2018-11-05T14:26:51Z</dc:date>
    </item>
  </channel>
</rss>

