ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Henke (Jira)" <j...@apache.org>
Subject [jira] [Commented] (RANGER-2749) Ranger depends on commons-lang but doesn't specify it in it's pom
Date Fri, 06 Mar 2020 14:45:00 GMT

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

Grant Henke commented on RANGER-2749:
-------------------------------------

[~pradeep] I posted a patch and review board that resolves the issue. Let me know if you
need anything else.

> Ranger depends on commons-lang but doesn't specify it in it's pom
> -----------------------------------------------------------------
>
>                 Key: RANGER-2749
>                 URL: https://issues.apache.org/jira/browse/RANGER-2749
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 2.0.0
>            Reporter: Grant Henke
>            Priority: Major
>         Attachments: 0001-RANGER-2749-Add-explicit-commons-lang-dependency.patch
>
>
> Ranger uses commons lang for StringUtils in places like: 
> [https://github.com/apache/ranger/blob/master/agents-common/src/main/java/org/apache/ranger/plugin/policyengine/RangerAccessRequestImpl.java#L31]
> However, it doesn't add commons-lang as a dependency and instead depends on the transitive
dependency from hadoop-common. When compiling my plugin with with Hadoop 3.2+ I get a `java.lang.NoClassDefFoundError:
org/apache/commons/lang/StringUtils` because Hadoop no longer depends on commons-lang. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message