-
Couldn't load subscription status.
- Fork 28.9k
[SPARK-22786][SQL] only use AppStatusPlugin in history server #19981
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.spark.status | ||
|
|
||
| import org.apache.spark.SparkConf | ||
| import org.apache.spark.scheduler.SparkListener | ||
| import org.apache.spark.ui.SparkUI | ||
|
|
||
| /** | ||
| * An interface for creating history listeners(to replay event logs) defined in other modules like | ||
| * SQL, and setup the UI of the plugin to rebuild the history UI. | ||
| */ | ||
| private[spark] trait AppHistoryServerPlugin { | ||
| /** | ||
| * Creates listeners to replay the event logs. | ||
| */ | ||
| def createListeners(conf: SparkConf, store: ElementTrackingStore): Seq[SparkListener] | ||
|
|
||
| /** | ||
| * Sets up UI of this plugin to rebuild the history UI. | ||
| */ | ||
| def setupUI(ui: SparkUI): Unit | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,7 @@ private[spark] class AppStatusListener( | |
|
|
||
| import config._ | ||
|
|
||
| private var sparkVersion = SPARK_VERSION | ||
| private val sparkVersion = SPARK_VERSION | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually this is a bug; the version should be read from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. filed https://issues.apache.org/jira/browse/SPARK-22854 , I'll do it later |
||
| private var appInfo: v1.ApplicationInfo = null | ||
| private var appSummary = new AppSummary(0, 0) | ||
| private var coresPerTask: Int = 1 | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| org.apache.spark.sql.execution.ui.SQLHistoryServerPlugin |
This file was deleted.
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.
do we really need to limit the UI data for history server? cc @vanzin
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.
Yes, both because it's the old behavior, and to limit the app's history data growth. Also because the UI code itself doesn't scale to arbitrarily large lists of things like jobs and stages.