Skip to content

Commit

Permalink
Merge branch 'master' of github.com:apache/spark into viz2
Browse files Browse the repository at this point in the history
Conflicts:
	core/src/main/scala/org/apache/spark/storage/RDDInfo.scala
	core/src/main/scala/org/apache/spark/ui/jobs/JobPage.scala
	core/src/main/scala/org/apache/spark/ui/jobs/JobsTab.scala
  • Loading branch information
Andrew Or committed May 3, 2015
2 parents 0706992 + 49549d5 commit b80cc52
Show file tree
Hide file tree
Showing 400 changed files with 17,612 additions and 3,211 deletions.
4 changes: 4 additions & 0 deletions .rat-excludes
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ TAGS
RELEASE
control
docs
docker.properties.template
fairscheduler.xml.template
spark-defaults.conf.template
log4j.properties
Expand All @@ -33,6 +34,9 @@ d3.min.js
dagre-d3.min.js
graphlib-dot.min.js
sorttable.js
vis.min.js
vis.min.css
vis.map
.*avsc
.*txt
.*json
Expand Down
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ BSD-style licenses
The following components are provided under a BSD-style license. See project link for details.

(BSD 3 Clause) core (com.github.fommil.netlib:core:1.1.2 - https://github.com/fommil/netlib-java/core)
(BSD 3 Clause) JPMML-Model (org.jpmml:pmml-model:1.1.15 - https://github.com/jpmml/jpmml-model)
(BSD 3-clause style license) jblas (org.jblas:jblas:1.2.3 - http://jblas.org/)
(BSD License) AntLR Parser Generator (antlr:antlr:2.7.7 - http://www.antlr.org/)
(BSD License) Javolution (javolution:javolution:5.5.1 - http://javolution.org)
Expand Down
2 changes: 1 addition & 1 deletion bin/spark-shell2.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rem

set SPARK_HOME=%~dp0..

echo "%*" | findstr " --help -h" >nul
echo "%*" | findstr " \<--help\> \<-h\>" >nul
if %ERRORLEVEL% equ 0 (
call :usage
exit /b 0
Expand Down
3 changes: 3 additions & 0 deletions conf/docker.properties.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
spark.mesos.executor.docker.image: <image built from `../docker/spark-mesos/Dockerfile`>
spark.mesos.executor.docker.volumes: /usr/local/lib:/host/usr/local/lib:ro
spark.mesos.executor.home: /opt/spark
5 changes: 5 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@
<artifactId>spark-network-shuffle_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-unsafe_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@
* limitations under the License.
*/

package org.apache.spark.storage
package org.apache.spark.api.java.function;

import tachyon.client.TachyonFile
import java.io.Serializable;

/**
* References a particular segment of a file (potentially the entire file), based off an offset and
* a length.
* A zero-argument function that returns an R.
*/
private[spark] class TachyonFileSegment(val file: TachyonFile, val offset: Long, val length: Long) {
override def toString: String = {
"(name=%s, offset=%d, length=%d)".format(file.getPath(), offset, length)
}
public interface Function0<R> extends Serializable {
public R call() throws Exception;
}
182 changes: 182 additions & 0 deletions core/src/main/resources/org/apache/spark/ui/static/timeline-view.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
/*
* 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.
*/

div#application-timeline, div#job-timeline {
margin-bottom: 30px;
}

#application-timeline div.legend-area {
margin-top: 5px;
}

.vis.timeline div.content {
width: 100%;
}

.vis.timeline .item.stage {
cursor: pointer;
}

.vis.timeline .item.stage.succeeded {
background-color: #D5DDF6;
}

.vis.timeline .item.stage.succeeded.selected {
background-color: #D5DDF6;
border-color: #97B0F8;
z-index: auto;
}

.legend-area rect.completed-stage-legend {
fill: #D5DDF6;
stroke: #97B0F8;
}

.vis.timeline .item.stage.failed {
background-color: #FF5475;
}

.vis.timeline .item.stage.failed.selected {
background-color: #FF5475;
border-color: #97B0F8;
z-index: auto;
}

.legend-area rect.failed-stage-legend {
fill: #FF5475;
stroke: #97B0F8;
}

.vis.timeline .item.stage.running {
background-color: #FDFFCA;
}

.vis.timeline .item.stage.running.selected {
background-color: #FDFFCA;
border-color: #97B0F8;
z-index: auto;
}

.legend-area rect.active-stage-legend {
fill: #FDFFCA;
stroke: #97B0F8;
}

.vis.timeline .item.job {
cursor: pointer;
}

.vis.timeline .item.job.succeeded {
background-color: #D5DDF6;
}

.vis.timeline .item.job.succeeded.selected {
background-color: #D5DDF6;
border-color: #97B0F8;
z-index: auto;
}

.legend-area rect.succeeded-job-legend {
fill: #D5DDF6;
stroke: #97B0F8;
}

.vis.timeline .item.job.failed {
background-color: #FF5475;
}

.vis.timeline .item.job.failed.selected {
background-color: #FF5475;
border-color: #97B0F8;
z-index: auto;
}

.legend-area rect.failed-job-legend {
fill: #FF5475;
stroke: #97B0F8;
}

.vis.timeline .item.job.running {
background-color: #FDFFCA;
}

.vis.timeline .item.job.running.selected {
background-color: #FDFFCA;
border-color: #97B0F8;
z-index: auto;
}

.legend-area rect.running-job-legend {
fill: #FDFFCA;
stroke: #97B0F8;
}

.vis.timeline .item.executor.added {
background-color: #D5DDF6;
}

.legend-area rect.executor-added-legend {
fill: #D5DDF6;
stroke: #97B0F8;
}

.vis.timeline .item.executor.removed {
background-color: #EBCA59;
}

.legend-area rect.executor-removed-legend {
fill: #EBCA59;
stroke: #97B0F8;
}

.vis.timeline .item.executor.selected {
border-color: #FFC200;
background-color: #FFF785;
z-index: 2;
}

tr.corresponding-item-hover>td, tr.corresponding-item-hover>th {
background-color: #FFE1FA !important;
}

#application-timeline.collapsed {
display: none;
}

#job-timeline.collapsed {
display: none;
}

.control-panel {
margin-bottom: 5px;
}

span.expand-application-timeline, span.expand-job-timeline {
cursor: pointer;
}

.control-panel input+span {
cursor: pointer;
}

.vis.timeline .item.range .content {
position: unset;
}

.vis.timeline .item .tooltip-inner {
max-width: unset !important;
}
Loading

0 comments on commit b80cc52

Please sign in to comment.