Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-6849

Sentry failed to start in unit tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Information Provided
    • Impala 2.12.0
    • None
    • Security
    • ghx-label-5

    Description

      ...
      07:07:56  --> Starting the Sentry Policy Server
      07:09:07 Error in /data/jenkins/workspace/<test version>/repos/Impala/testdata/bin/run-all.sh at line 81: $IMPALA_HOME/testdata/bin/run-sentry-service.sh > \
      ...

      The unit test was for s3. In the sentry startup logs, there's several retries and a problem with listing roles:

      ...
      8/04/11 07:09:05 ERROR transport.RetryClientInvocationHandler: failed to execute listRoles
      java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at sentry.org.apache.sentry.core.common.transport.RetryClientInvocationHandler.invokeImpl(RetryClientInvocationHandler.java:95)
      at sentry.org.apache.sentry.core.common.transport.SentryClientInvocationHandler.invoke(SentryClientInvocationHandler.java:41)
      at com.sun.proxy.$Proxy0.listRoles(Unknown Source)
      at org.apache.impala.util.SentryPolicyService.listAllRoles(SentryPolicyService.java:393)
      at org.apache.impala.testutil.SentryServicePinger.main(SentryServicePinger.java:75)
      Caused by: org.apache.sentry.provider.db.SentryAccessDeniedException: Access denied to jenkins. Server Stacktrace: org.apache.sentry.provider.db.SentryAccessDeniedException: Access denied to jenkins
      at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.list_sentry_roles_by_group(SentryPolicyStoreProcessor.java:581)
      at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$list_sentry_roles_by_group.getResult(SentryPolicyService.java:1077)
      at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$list_sentry_roles_by_group.getResult(SentryPolicyService.java:1062)
      ...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vukercegovac Vuk Ercegovac
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: