BDA V4.0 to V4.1 Upgrade Fails at Step 7 on Sentry upgrade with: Service has only 0 Sentry Server roles running instead of minimum required 1 (Doc ID 1968132.1)

Last updated on FEBRUARY 05, 2015

Applies to:

Big Data Appliance Integrated Software - Version 4.1.0 and later
Linux x86-64

Symptoms

The BDA V4.0 to V4.1 fails at Step 7 due to the Sentry store schema failing to upgrade.  In this case Sentry was configured as described in:
How to Set Up Sentry RPC Service in BDA v4.0 so that it Does Not have to be Removed Prior to Upgrade (Doc ID 1955063.1)

The failure reported in CM is:

service did not start successfully; not all of the required roles started: Service has only 0 Sentry Server roles running instead of minimum required 1.

The stack shows:  Caused by: org.apache.sentry.provider.db.SentryAccessDeniedException: The Sentry store schema version 1.4.0 is different from distribution version 1.4.0-cdh5-2

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:188)
    at org.apache.sentry.service.thrift.SentryService$CommandImpl.run(SentryService.java:390)
    at org.apache.sentry.SentryMain.main(SentryMain.java:94)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Caused by: java.lang.Exception: Error starting server
    at org.apache.sentry.service.thrift.SentryService.call(SentryService.java:167)
    at org.apache.sentry.service.thrift.SentryService.call(SentryService.java:72)
    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.IllegalStateException: Could not create org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessorFactory
    at org.apache.sentry.service.thrift.SentryService.runServer(SentryService.java:197)
    at org.apache.sentry.service.thrift.SentryService.access$000(SentryService.java:72)
    at org.apache.sentry.service.thrift.SentryService$2.run(SentryService.java:158)
    at org.apache.sentry.service.thrift.SentryService$2.run(SentryService.java:155)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:415)
    at org.apache.sentry.service.thrift.SentryService.call(SentryService.java:155)
    ... 5 more
Caused by: org.apache.sentry.provider.db.SentryAccessDeniedException: The Sentry store schema version 1.4.0 is different from distribution version 1.4.0-cdh5-2
    at org.apache.sentry.provider.db.service.persistent.SentryStore.verifySentryStoreSchema(SentryStore.java:153)
    at org.apache.sentry.provider.db.service.persistent.SentryStore.<init>(SentryStore.java:140)
    at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.<init>(SentryPolicyStoreProcessor.java:98)


The Sentry version in MySQL is 1.4.0:

 

Changes

Upgrade to BDA V4.1 from BDA V4.0.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms