Member since
07-18-2024
13
Posts
6
Kudos Received
0
Solutions
08-05-2024
12:01 AM
Hello @cloude even after adding those parameters I get the 302 error, wondering if the issue is not on the Knox part though now but thank you very much for your answer
... View more
08-02-2024
05:42 AM
Hello @cloude thank you for your answer, I disabled it and still got the error, tried on chrome too here is the error message in chrome, Access to XMLHttpRequest at 'https://spark-host:18080/api/v1/applications?limit=2147483647&status=completed' from origin 'https://knox-host:8443' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Do you have any other idea ?
... View more
08-01-2024
08:45 AM
Hello, I'm trying to acces Spark History UI through Apache Knox proxy but I get this error the following error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://<spark-host>:18080/api/v1/applications?limit=2147483647&status=completed. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 302. I can' t find something related to CORS in Spark do you know how I could fix that ? Thanks for your answer
... View more
Labels:
- Labels:
-
Apache Knox
-
Apache Spark
07-29-2024
06:57 AM
I saw that hdfsui actually does that and redirect me to the namenode instead of proxying the frontend but I didn' t find anything regarding that in the rewrite rules
... View more
07-29-2024
03:05 AM
1 Kudo
Hello, I am using Apache Knox and am having trouble with some rewrites rules, to avoid those is there a way to tell Knox to just redirect the user to the service he asked for instead of proxying the requests on the KnoxUI on port :8443 ? Thanks for your answers
... View more
Labels:
- Labels:
-
Apache Knox
07-28-2024
11:59 PM
1 Kudo
Hello @Bharati and@jagadeesan wondering if you got any ideas about that topic ?
... View more
07-24-2024
01:47 AM
1 Kudo
Hello @JeffLawson I tried using this JWTRedirectAuthenticationHandler but didn' t had any result, do you know that param name is it in the hbase-site.xml ?
... View more
07-23-2024
11:56 PM
Hello @shubham_sharma Thank you very much for taking the time, I currently run under 2.3.5 and I can' t use this filter, is this ability to redirect to Knox with the AuthenticationFilterInitializer only available since 3.0.0 ?
... View more
07-23-2024
12:04 AM
1 Kudo
Hello, I am wondering if there is any way to secure HBase with Apache Knox so that if the Knox token is not provided HBase redirects to the Knox SSO page. I managed to do it for HDFS Yarn and Spark using filters but can' t seem to find any way to do that with HBase. ``` <property> <name>hadoop.http.authentication.type</name> <value>org.apache.hadoop.security.authentication.server.JWTRedirectAuthenticationHandler</value> </property> <property> <name>hadoop.http.authentication.authentication.provider.url</name> <value>https://<knox-host>:8443/gateway/knoxsso/api/v1/websso</value> </property> <property> <name>hadoop.http.authentication.public.key.pem</name> <value><Your public token from the .pem file></value> </property> ``` Here is what I added in core-site.xml to protect HDFS and Yarn. Thank you for your time
... View more
Labels:
- Labels:
-
Apache HBase
-
Apache Knox
07-19-2024
12:00 AM
Hello, I am securing my Spark history UI with Apache knox and am having trouble with the proxied SparkhistoryUI as mentionned in this thread: https://lists.apache.org/thread/xwzo4g6qk2hqmn62t6p162b8t6l3hldq I managed to edit the rewrite rules to make the css load on the proxied sparkhistory UI but I am now facing another problem I don' t manage to overcome. When the pages loads the js code triggers a jquery call to the api: `$.getJSON(uiRoot + "/api/v1/applications", appParams` The problem is that when Knox is proxying Spark history UI this uiRoot is not the right one it's https://knox-host:8443/api/v1/applications instead of https://spark-ui-host:18080/api/v1/applications Apache Knox rewrite rules don't seem to be able to fix that so this is why I am sending a message here to see if any of you have a better idea, maybe something related to the proxy setup. I tried to set `spark.ui.proxyBase` to the Spark History UI URL and port so that Knox tries to reach it but I end up with a 302 error `Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://host:18080/api/v1/applications?limit=2147483647&status=completed. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 302.`, and I don' t see anything related to CORS in the SHS configuration. I would love to have any suggestion on why the Spark rules don't work out of the box on Knox or how I could fix that api call. Thank you very much for your responses
... View more
Labels:
- Labels:
-
Apache Knox
-
Apache Spark