Skip to content

Commit

Permalink
fix minor nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket committed May 5, 2017
1 parent 52f414c commit dad87a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
val appListener = replay(fileStatus, isApplicationCompleted(fileStatus), replayBus)

if (appListener.appId.isDefined) {
ui.setAppSparkVersion(appListener.appSparkVersion.getOrElse(""))
ui.appSparkVersion = appListener.appSparkVersion.getOrElse("")
ui.getSecurityManager.setAcls(HISTORY_UI_ACLS_ENABLE)
// make sure to set admin acls before view acls so they are properly picked up
val adminAcls = HISTORY_UI_ADMIN_ACLS + "," + appListener.adminAcls.getOrElse("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,10 @@ private[spark] object EventLoggingListener extends Logging {
*
* @param logStream Raw output stream to the event log file.
*/
def initEventLog(logStream: OutputStream, testing: Boolean,
loggedEvents: ArrayBuffer[JValue]): Unit = {
def initEventLog(
logStream: OutputStream,
testing: Boolean,
loggedEvents: ArrayBuffer[JValue]): Unit = {
val metadata = SparkListenerLogStart(SPARK_VERSION)
val eventJson = JsonProtocol.logStartToJson(metadata)
val metadataJson = compact(eventJson) + "\n"
Expand Down
4 changes: 0 additions & 4 deletions core/src/main/scala/org/apache/spark/ui/SparkUI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ private[spark] class SparkUI private (
appId = id
}

def setAppSparkVersion(version: String): Unit = {
appSparkVersion = version
}

/** Stop the server behind this web interface. Only valid after bind(). */
override def stop() {
super.stop()
Expand Down

0 comments on commit dad87a6

Please sign in to comment.