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

Nikolay commented on RANGER-4411:
---------------------------------

You can solve this problem by copy guava-32.1.3-jre.jar lib to 
/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/ozone/


{code:java}
COPY ./downloads/ozone-2.0.0/share/ozone/lib/guava-32.1.3-jre.jar 
${RANGER_HOME}/admin/ews/webapp/WEB-INF/classes/ranger-plugins/ozone/ {code}
 

> Authorization error Ozone plugin
> --------------------------------
>
>                 Key: RANGER-4411
>                 URL: https://issues.apache.org/jira/browse/RANGER-4411
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: 2.3.0, 2.4.0
>            Reporter: t34
>            Priority: Major
>         Attachments: image-2023-09-15-09-48-13-934.png
>
>
> When setting up a connection to Ozone from Ranger 2.3.0, I receive a message 
> in the UI
> Connection Failed.
> {code:java}
> Unable to retrieve any files using given parameters, You can still save the 
> repository and start creating policies, but you would not be able to use 
> autocomplete for resource names. Check ranger_admin.log for more info.
> java.lang.NoClassDefFoundError: 
> org/apache/hadoop/shaded/com/google/protobuf/ServiceException.
> org.apache.hadoop.shaded.com.google.protobuf.ServiceException.
> {code}
> Error in Ranger Admin logs
>  
> {code:java}
> 2023-09-14 09:37:31,798 [timed-executor-pool-0] INFO [Base Client.java:126] 
> Init Login: security not enabled, using username
> 2023-09-14 09:37:31,857 [http-nio-6080-exec-9] ERROR [ServiceMgr.java:198] 
> ==> ServiceMgr.validateConfig 
> Error:org.apache.ranger.plugin.client.HadoopException: 
> java.lang.NoClassDefFoundError: 
> org/apache/hadoop/shaded/com/google/protobuf/ServiceException{code}
>  
> The directory for the Ozone plugin had to be created manually in 
> {code:java}
> ews/webapp/WEB-INF/classes/ranger-plugins/ozone{code}
>  because it was not there by default and copied jars Ozone there after 
> creation
> !image-2023-09-15-09-48-13-934.png|width=873,height=317!



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

Reply via email to