-
- Downloads
[SPARK-10541][WEB UI] Allow ApplicationHistoryProviders to provide their own...
[SPARK-10541][WEB UI] Allow ApplicationHistoryProviders to provide their own text when there aren't any complete apps ## What changes were proposed in this pull request? I've added a method to `ApplicationHistoryProvider` that returns the html paragraph to display when there are no applications. This allows providers other than `FsHistoryProvider` to determine what is printed. The current hard coded text is now moved into `FsHistoryProvider` since it assumed that's what was being used before. I chose to make the function return html rather than text because the current text block had inline html in it and it allows a new implementation of `ApplicationHistoryProvider` more versatility. I did not see any security issues with this since injecting html here requires implementing `ApplicationHistoryProvider` and can't be done outside of code. ## How was this patch tested? Manual testing and dev/run-tests No visible changes to the UI Author: Alex Bozarth <ajbozart@us.ibm.com> Closes #15490 from ajbozarth/spark10541.
Showing
- core/src/main/scala/org/apache/spark/deploy/history/ApplicationHistoryProvider.scala 6 additions, 0 deletions...che/spark/deploy/history/ApplicationHistoryProvider.scala
- core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala 12 additions, 0 deletions...a/org/apache/spark/deploy/history/FsHistoryProvider.scala
- core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala 1 addition, 7 deletions...n/scala/org/apache/spark/deploy/history/HistoryPage.scala
- core/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala 8 additions, 0 deletions...scala/org/apache/spark/deploy/history/HistoryServer.scala
Please register or sign in to comment