You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hugo WARIN (Jira)" <ji...@apache.org> on 2024/10/08 12:22:00 UTC

[jira] [Created] (HBASE-28909) Ranger doesn't work with hbase 2.6 when using hadoop 3.3.6

Hugo WARIN created HBASE-28909:
----------------------------------

             Summary: Ranger doesn't work with hbase 2.6 when using hadoop 3.3.6
                 Key: HBASE-28909
                 URL: https://issues.apache.org/jira/browse/HBASE-28909
             Project: HBase
          Issue Type: Bug
    Affects Versions: 2.5.0
            Reporter: Hugo WARIN


Hello, 
I have this issue on my stack
{code:java}
2024-09-23T08:12:51.336Z - ERROR [PolicyRefresher(serviceName=hbase-tdp)-196:Errors@168] - The following errors and warnings have been detected with resource and/or provider classes:   SEVERE: Missing dependency for method public void com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0   SEVERE: Missing dependency for method public void com.sun.jersey.json.impl.provider.entity.JSONListElementProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0   SEVERE: Missing dependency for method public void com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0   SEVERE: Missing dependency for method public void com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0   SEVERE: Missing dependency for field: javax.ws.rs.core.UriInfo com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.ui   SEVERE: Missing dependency for field: com.sun.jersey.spi.template.TemplateContext com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.tc   SEVERE: Missing dependency for method public void com.sun.jersey.json.impl.provider.entity.JSONListElementProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0   SEVERE: Missing dependency for method public void com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.setFeaturesAndProperties(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 1   SEVERE: Missing dependency for method public void com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0   SEVERE: Missing dependency for method public void com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider.setConfiguration(com.sun.jersey.core.util.FeaturesAndProperties) at parameter at index 0
 {code}
The issue is that jersey-json and jersey-jar are missing on the hbase plugin

The solution is to add this lines to distro/src/main/assembly/hbase-agent.xml under 
lib/ranger-hbase-plugin-impl
{code:java}
<include>com.sun.jersey:jersey-json:jar:${jersey-bundle.version}</include>Line58added              
<include>com.sun.jersey:jersey-server:jar:${jersey-bundle.version}</include>Line59added  
<include>com.sun.jersey:jersey-servlet:jar:${jersey-bundle.version}</include> {code}
 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)