chakravarthiT opened a new pull request #23312: [SPARK-26255]Custom 
error/exception is not thrown for the SQL tab when UI filters are added in 
spark-sql launch
URL: https://github.com/apache/spark/pull/23312
 
 
   
   
   ## What changes were proposed in this pull request?
   
   User specified filters are not applied to SQL tab in yarn mode, as it is 
overridden by the yarn AmIp filter.
   So we need to append user provided filters (spark.ui.filters) with yarn 
filter.
   
   ## How was this patch tested?
   
   【Test step】:
   
   1)  Launch spark sql with authentication filter as below:
   
   2)  spark-sql --master yarn --conf 
spark.ui.filters=org.apache.hadoop.security.authentication.server.AuthenticationFilter
 --conf 
spark.org.apache.hadoop.security.authentication.server.AuthenticationFilter.params="type=simple"
   
   3)  Go to Yarn application list UI link
   
   4) Launch the application master for the Spark-SQL app ID and access all the 
tabs by appending tab name.
   
   5) It will display an error for all tabs including SQL tab.(before able to 
access SQL tab,as Authentication filter is not applied for SQL tab)
   
   6) Also can be verified with info logs,that Authentication filter applied to 
SQL tab.(before it is not applied).
   
   
   I have attached the behaviour below in following order..
   
   1) Command used
   2) Before fix (logs and UI)
   3) After fix (logs and UI)
   
   
   **1) COMMAND USED**:
   
   launching spark-sql with authentication filter.
   
   
![image](https://user-images.githubusercontent.com/45845595/49947295-e7e97400-ff16-11e8-8c9a-10659487ddee.png)
   
   
   **2) BEFORE FIX:**
   
   **UI result:**
   able to access SQL tab.
   
   
![image](https://user-images.githubusercontent.com/45845595/49948398-62b38e80-ff19-11e8-95dc-e74f9e3c2ba7.png)
   
    **logs**:
   authentication filter not applied to SQL tab.
   
   
![image](https://user-images.githubusercontent.com/45845595/49947343-ff286180-ff16-11e8-9de0-3f8db140bc32.png)
   
   
   **3) AFTER FIX:**
   
   **UI result**:
   
   Not able to access SQL tab.
   
   
![image](https://user-images.githubusercontent.com/45845595/49947360-0d767d80-ff17-11e8-9e9e-a95311949164.png)
   
   **in logs**:
   
   Both yarn filter and Authentication filter applied to SQL tab.
   
   
![image](https://user-images.githubusercontent.com/45845595/49947377-1a936c80-ff17-11e8-9f44-700eb3dc0ded.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to