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

kejie commented on RANGER-3842:
-------------------------------

[~akatona]   Kafka is configured with kerberos, and can be successfully 
produced and consumed. Configure 
authorizer.class.name=org.apache.ranger.authorization.kafka.authorizer.RangerKafkaAuthorizer
 in server.properties, and the above-mentioned problems will occur. Connection 
timed out. 

The kafka plugin is installed by executing enable-kafka-plugin.sh

 

Would like to ask, I am missing some key configuration?

!image-2022-07-28-16-08-08-815.png!

> Ranger Kafka test connection timeout in Kerberos environment
> ------------------------------------------------------------
>
>                 Key: RANGER-3842
>                 URL: https://issues.apache.org/jira/browse/RANGER-3842
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins, Ranger
>    Affects Versions: 2.3.0
>         Environment: linux 
>            Reporter: kejie
>            Priority: Major
>         Attachments: image-2022-07-26-11-38-37-426.png, 
> image-2022-07-26-11-38-55-377.png, image-2022-07-26-11-42-13-846.png, 
> image-2022-07-28-16-08-08-815.png
>
>
> Excuse me, how can I configure my Kafka to work normally?
> The following is my related configuration and log information! 
>  
> ranger-admin.log
>  
> {code:java}
> 2022-07-26 02:52:13,658 [http-nio-6080-exec-9] ERROR [ServiceMgr.java:198] 
> ==> ServiceMgr.validateConfig Error:java.util.concurrent.TimeoutException
> ...
> ...
> ...
> 2022-07-26 00:00:28,532 [http-nio-6080-exec-5] INFO [RESTErrorUtil.java:346] 
> Request failed. loginId=null, logMessage=Unauthenticated access not allowed
> javax.ws.rs.WebApplicationException: null{code}
>  
>  
>  
>  
> This is my Kafka server.log 
>  
> {code:java}
> [2022-07-26 11:27:05,359] WARN Error getting Roles. secureMode=false, 
> user=root (auth:SIMPLE), response={"httpStatusCode":400,"statusCode":0}, 
> serviceName=kmr_kafka 
> (org.apache.ranger.admin.client.RangerAdminRESTClient){code}
>  
>  
>  
> ranger-admin ui
> !image-2022-07-26-11-38-37-426.png!
> !image-2022-07-26-11-42-13-846.png!
> !image-2022-07-26-11-38-55-377.png!
> ranger-admin  install.properties kerberos config
> {code:java}
> #------------ Kerberos Config -----------------
> spnego_principal=HTTP/[email protected]
> spnego_keytab=/etc/kmr/krb5/data/keytabs/kmr.keytab
> token_valid=30
> cookie_domain=
> cookie_path=/
> admin_principal=hadoop/[email protected]
> admin_keytab=/etc/kmr/krb5/data/keytabs/kmr.keytab
> lookup_principal=hadoop/[email protected]
> lookup_keytab=/etc/kmr/krb5/data/keytabs/kmr.keytab
> hadoop_conf=/mnt/kmr/hadoop/1/hadoop-3.1.1/etc/hadoop {code}
>  



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

Reply via email to