You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Na Li (JIRA)" <ji...@apache.org> on 2017/06/01 16:07:04 UTC

[jira] [Commented] (SENTRY-1790) NoClassDefFoundError: org/apache/sentry/binding/hive/SentryOnFailureHookContextImpl

    [ https://issues.apache.org/jira/browse/SENTRY-1790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16033217#comment-16033217 ] 

Na Li commented on SENTRY-1790:
-------------------------------

I cannot reproduce the exception in sentry-ha-redesign branch. close this issue for now.

> NoClassDefFoundError: org/apache/sentry/binding/hive/SentryOnFailureHookContextImpl
> -----------------------------------------------------------------------------------
>
>                 Key: SENTRY-1790
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1790
>             Project: Sentry
>          Issue Type: Bug
>          Components: Sentry
>    Affects Versions: sentry-ha-redesign
>            Reporter: Na Li
>            Assignee: Na Li
>
> Creating SentryOnFailureHookContextImpl may fail in HiveAuthzBindingHookBase.executeOnFailureHooks and have java.lang.NoClassDefFoundError.
> When exception is thrown, hive is calling Sentry plugin to handle the failure. Loading sentry class SentryOnFailureHookContextImpl  may fail. 
> It is safer to load the class in normal context, so creating its instance won't fail after exception is thrown.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)