New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-11272][Core][UI] Support importing and exporting event logs from HistoryServer web portal #9238
Conversation
Test build #44197 has finished for PR 9238 at commit
|
Test build #44221 has finished for PR 9238 at commit
|
Test build #44324 has finished for PR 9238 at commit
|
Jenkins, retest this please. |
Test build #44335 has finished for PR 9238 at commit
|
* @throws SparkException if there's any exception read in the zip stream. | ||
*/ | ||
@throws(classOf[SparkException]) | ||
def readEventLogs(zipStream: ZipInputStream): Unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than make this abstract, can you add a stub method which just goes throw new SparkException("Unsupported Feature")
. That way any existing history provider will still load
|
The download functionality is super cool, but the import part has somewhat confusing semantics. The history server is supposed to dynamically sync all logs in a specific directory. With this patch you can have logs that you uploaded but no longer exist, and the original logs don't have to be from the same path. Above all this seems like a rather niche use case. |
@jerryshao would you mind closing this PR and maybe re-opening one that only supports the download functionality? |
OK, I see. I will close this PR, thanks a lot for your comments. |
…toryServer 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.
…toryServer UI ## What changes were proposed in this pull request? This is a reworked PR based on feedback in apache#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 apache#15400 from ajbozarth/spark11272.
This patch helps user to easily download the event logs from HistoryServer, or upload other's log to debug and replay. Quite useful for user to seek help or identify problem for others. Here is the screenshot:
Please review. Thanks a lot.