aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/resources
diff options
context:
space:
mode:
authorAlex Bozarth <ajbozart@us.ibm.com>2016-10-13 03:24:37 -0400
committerAndrew Or <andrewor14@gmail.com>2016-10-13 03:24:37 -0400
commit6f2fa6c54a11caccd446d5560d2014c645fcf7cc (patch)
tree4e8c93c50380bd7a8f6fdf5a4377d9728e20a407 /core/src/main/resources
parent7222a25a11790fa9d9d1428c84b6f827a785c9e8 (diff)
downloadspark-6f2fa6c54a11caccd446d5560d2014c645fcf7cc.tar.gz
spark-6f2fa6c54a11caccd446d5560d2014c645fcf7cc.tar.bz2
spark-6f2fa6c54a11caccd446d5560d2014c645fcf7cc.zip
[SPARK-11272][WEB UI] Add support for downloading event logs from HistoryServer UI
## What changes were proposed in this pull request? This is a reworked PR based on feedback in #9238 after it was closed and not reopened. As suggested in that PR I've only added the download feature. This functionality already exists in the api and this allows easier access to download event logs to share with others. I've attached a screenshot of the committed version, but I will also include alternate options with screen shots in the comments below. I'm personally not sure which option is best. ## How was this patch tested? Manual testing ![screen shot 2016-10-07 at 6 11 12 pm](https://cloud.githubusercontent.com/assets/13952758/19209213/832fe48e-8cba-11e6-9840-749b1be4d399.png) Author: Alex Bozarth <ajbozart@us.ibm.com> Closes #15400 from ajbozarth/spark11272.
Diffstat (limited to 'core/src/main/resources')
-rw-r--r--core/src/main/resources/org/apache/spark/ui/static/historypage-template.html7
-rw-r--r--core/src/main/resources/org/apache/spark/ui/static/historypage.js1
2 files changed, 7 insertions, 1 deletions
diff --git a/core/src/main/resources/org/apache/spark/ui/static/historypage-template.html b/core/src/main/resources/org/apache/spark/ui/static/historypage-template.html
index a2b3826dd3..1fd6ef4a71 100644
--- a/core/src/main/resources/org/apache/spark/ui/static/historypage-template.html
+++ b/core/src/main/resources/org/apache/spark/ui/static/historypage-template.html
@@ -59,7 +59,11 @@
Last Updated
</span>
</th>
- </tr>
+ <th>
+ <span data-toggle="tooltip" data-placement="above" title="Download the event log for this application">
+ Event Log
+ </span>
+ </th>
</thead>
<tbody>
{{#applications}}
@@ -73,6 +77,7 @@
<td><span title="{{duration}}" class="durationClass">{{duration}}</span></td>
<td>{{sparkUser}}</td>
<td>{{lastUpdated}}</td>
+ <td><a href="/api/v1/applications/{{id}}/{{num}}/logs" class="btn btn-info btn-mini">Download</a></td>
{{/attempts}}
</tr>
{{/applications}}
diff --git a/core/src/main/resources/org/apache/spark/ui/static/historypage.js b/core/src/main/resources/org/apache/spark/ui/static/historypage.js
index c8094005c6..2a32e18672 100644
--- a/core/src/main/resources/org/apache/spark/ui/static/historypage.js
+++ b/core/src/main/resources/org/apache/spark/ui/static/historypage.js
@@ -133,6 +133,7 @@ $(document).ready(function() {
{name: 'sixth', type: "title-numeric"},
{name: 'seventh'},
{name: 'eighth'},
+ {name: 'ninth'},
],
"autoWidth": false,
"order": [[ 4, "desc" ]]