Hello, For the force redirect part this behavior is due to Hadoop itself, a html meta tag refresh the page to dfshealth automatically https://github.com/apache/hadoop/blob/2fd7cf53facec3aa649f1f2cc53f8e21c209e178/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/index.html#L2 I like this behavior since I don’t have to bother with rewrite rules to proxy the Hadoop frontend then, I can let Hadoop port open instead of putting it behind Knox and protect it with the JWTRedirectAuthenticationHandler in core-site config. That way when an unauthenticated user is trying to directly access one of Hadoop component he gets redirected to Knox so page. I was able to reproduce the same behavior with spark AuthenticationFilter and force the redirection to this service by putting a simple nginx server with this meta tag pointing to a loadbalancer in front of my spark instances. This way I can force the redirection to one of those servers. This is for now a workaround that seems to work pretty well but kind of ugly, in the end the best solution would be to not have this 302 error on the spark API call that I mentioned in other threads. Le 17 août 2024 à 22:49, larry mccay <larry.mc...@gmail.com> a écrit :
|
Re: Force redirect to a service instead of proxying
thomas.mau...@etu.umontpellier.fr Mon, 19 Aug 2024 23:34:58 -0700
- Force redirect to a service instead of p... Thomas Mauran
- Re: Force redirect to a service ins... Sandeep Moré
- Re: Force redirect to a service... thomas.mau...@etu.umontpellier.fr
- Re: Force redirect to a ser... Sandeep Moré
- Re: Force redirect to a... thomas.mau...@etu.umontpellier.fr
- Re: Force redirect... larry mccay
- Re: Force redi... thomas.mau...@etu.umontpellier.fr