Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Ranger Enpoint on Dataproc not found

Hey there!

I am building a Dataproc cluster that has Ranger enabled. The cluster runs without any issues and I am able to access all the endpoints of components that run on my cluster, such as Solr, HDFS, or my Spark History Server without any problems except for Ranger. The Ranger component returns me a 404 when I try to access its endpoint.

The /ranger endpoint forwards me to the /login.jsp endpoint, where I get the 404 error. But the true path to Rangers login page is /ranger/login.jsp which is blocked and not accessible through the outside.

Ranger runs without any problems internally. Here is a curl from inside my cluster to the ranger port:

curl -vvv -u admin http://localhost:6080

2023-11-20 10:12:26,984 [http-nio-6080-exec-6] INFO [SpringEventListener.java:74] Login Successful:admin | Ip Address:127.0.0.1 | sessionId=80A8F2A24E0FDDDB9FE544412BF476A4 | Epoch=170047514698

Aside from the 404 error, there are no indications that the cluster has any larger issues. There are also no firewall rules or lack of firewall rules that could prevent me from accessing ranger from the outside.

I think it is an issue with Dataproc and its configuration, since all the components work just fine internally (even Ranger).
If someone has ever encountered this issue i would be thankful, if you could guide me through the steps of resolving this issue.

Thanks!

1 1 174
1 REPLY 1

Hi @MuhammetSen

Welcome and thank you for reaching out to our community.

I get that you are having challenges making Ranger to work externally, the 404 suggests that a file or a directory was not found, either due to a failed connection or it does not exist at all, but I am leaning towards connection.

Consider exploring these documents as it might have something to do with a VPC service or a network configuration:

 - Troubleshoot Dataproc error messages
 - Using Component Gateway with VPC-SC
 - Dataproc Cluster Network Configuration

Hope this helps.