Skip to content

Commit f9a0c37

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix_requesthandler_memory_leak
2 parents 45908b7 + 7fe0f3f commit f9a0c37

File tree

342 files changed

+16315
-3017
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+16315
-3017
lines changed

.rat-excludes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ log4j-defaults.properties
3030
bootstrap-tooltip.js
3131
jquery-1.11.1.min.js
3232
sorttable.js
33+
vis.min.js
34+
vis.min.css
35+
vis.map
3336
.*avsc
3437
.*txt
3538
.*json

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ BSD-style licenses
814814
The following components are provided under a BSD-style license. See project link for details.
815815

816816
(BSD 3 Clause) core (com.github.fommil.netlib:core:1.1.2 - https://github.com/fommil/netlib-java/core)
817+
(BSD 3 Clause) JPMML-Model (org.jpmml:pmml-model:1.1.15 - https://github.com/jpmml/jpmml-model)
817818
(BSD 3-clause style license) jblas (org.jblas:jblas:1.2.3 - http://jblas.org/)
818819
(BSD License) AntLR Parser Generator (antlr:antlr:2.7.7 - http://www.antlr.org/)
819820
(BSD License) Javolution (javolution:javolution:5.5.1 - http://javolution.org)

assembly/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@
194194
<plugin>
195195
<groupId>org.apache.maven.plugins</groupId>
196196
<artifactId>maven-assembly-plugin</artifactId>
197-
<version>2.4</version>
198197
<executions>
199198
<execution>
200199
<id>dist</id>

bin/spark-class2.cmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ if not "x%JAVA_HOME%"=="x" set RUNNER=%JAVA_HOME%\bin\java
6161

6262
rem The launcher library prints the command to be executed in a single line suitable for being
6363
rem executed by the batch interpreter. So read all the output of the launcher into a variable.
64-
for /f "tokens=*" %%i in ('cmd /C ""%RUNNER%" -cp %LAUNCH_CLASSPATH% org.apache.spark.launcher.Main %*"') do (
64+
set LAUNCHER_OUTPUT=%temp%\spark-class-launcher-output-%RANDOM%.txt
65+
"%RUNNER%" -cp %LAUNCH_CLASSPATH% org.apache.spark.launcher.Main %* > %LAUNCHER_OUTPUT%
66+
for /f "tokens=*" %%i in (%LAUNCHER_OUTPUT%) do (
6567
set SPARK_CMD=%%i
6668
)
69+
del %LAUNCHER_OUTPUT%
6770
%SPARK_CMD%

conf/spark-env.sh.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file is sourced when running various Spark programs.
44
# Copy it as spark-env.sh and edit that to configure Spark for your site.
55

6-
# Options read when launching programs locally with
6+
# Options read when launching programs locally with
77
# ./bin/run-example or ./bin/spark-submit
88
# - HADOOP_CONF_DIR, to point Spark towards Hadoop configuration files
99
# - SPARK_LOCAL_IP, to set the IP address Spark binds to on this node
@@ -39,6 +39,7 @@
3939
# - SPARK_WORKER_DIR, to set the working directory of worker processes
4040
# - SPARK_WORKER_OPTS, to set config properties only for the worker (e.g. "-Dx=y")
4141
# - SPARK_HISTORY_OPTS, to set config properties only for the history server (e.g. "-Dx=y")
42+
# - SPARK_SHUFFLE_OPTS, to set config properties only for the external shuffle service (e.g. "-Dx=y")
4243
# - SPARK_DAEMON_JAVA_OPTS, to set config properties for all daemons (e.g. "-Dx=y")
4344
# - SPARK_PUBLIC_DNS, to set the public dns name of the master or workers
4445

core/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@
9595
<artifactId>spark-network-shuffle_${scala.binary.version}</artifactId>
9696
<version>${project.version}</version>
9797
</dependency>
98+
<dependency>
99+
<groupId>org.apache.spark</groupId>
100+
<artifactId>spark-unsafe_${scala.binary.version}</artifactId>
101+
<version>${project.version}</version>
102+
</dependency>
98103
<dependency>
99104
<groupId>net.java.dev.jets3t</groupId>
100105
<artifactId>jets3t</artifactId>
@@ -478,7 +483,6 @@
478483
<plugin>
479484
<groupId>org.codehaus.mojo</groupId>
480485
<artifactId>exec-maven-plugin</artifactId>
481-
<version>1.3.2</version>
482486
<executions>
483487
<execution>
484488
<id>sparkr-pkg</id>

core/src/main/scala/org/apache/spark/storage/TachyonFileSegment.scala renamed to core/src/main/java/org/apache/spark/api/java/function/Function0.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,13 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.spark.storage
18+
package org.apache.spark.api.java.function;
1919

20-
import tachyon.client.TachyonFile
20+
import java.io.Serializable;
2121

2222
/**
23-
* References a particular segment of a file (potentially the entire file), based off an offset and
24-
* a length.
23+
* A zero-argument function that returns an R.
2524
*/
26-
private[spark] class TachyonFileSegment(val file: TachyonFile, val offset: Long, val length: Long) {
27-
override def toString: String = {
28-
"(name=%s, offset=%d, length=%d)".format(file.getPath(), offset, length)
29-
}
25+
public interface Function0<R> extends Serializable {
26+
public R call() throws Exception;
3027
}
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
div#application-timeline, div#job-timeline {
19+
margin-bottom: 30px;
20+
}
21+
22+
#application-timeline div.legend-area {
23+
margin-top: 5px;
24+
}
25+
26+
.vis.timeline div.content {
27+
width: 100%;
28+
}
29+
30+
.vis.timeline .item.stage {
31+
cursor: pointer;
32+
}
33+
34+
.vis.timeline .item.stage.succeeded {
35+
background-color: #D5DDF6;
36+
}
37+
38+
.vis.timeline .item.stage.succeeded.selected {
39+
background-color: #D5DDF6;
40+
border-color: #97B0F8;
41+
z-index: auto;
42+
}
43+
44+
.legend-area rect.completed-stage-legend {
45+
fill: #D5DDF6;
46+
stroke: #97B0F8;
47+
}
48+
49+
.vis.timeline .item.stage.failed {
50+
background-color: #FF5475;
51+
}
52+
53+
.vis.timeline .item.stage.failed.selected {
54+
background-color: #FF5475;
55+
border-color: #97B0F8;
56+
z-index: auto;
57+
}
58+
59+
.legend-area rect.failed-stage-legend {
60+
fill: #FF5475;
61+
stroke: #97B0F8;
62+
}
63+
64+
.vis.timeline .item.stage.running {
65+
background-color: #FDFFCA;
66+
}
67+
68+
.vis.timeline .item.stage.running.selected {
69+
background-color: #FDFFCA;
70+
border-color: #97B0F8;
71+
z-index: auto;
72+
}
73+
74+
.legend-area rect.active-stage-legend {
75+
fill: #FDFFCA;
76+
stroke: #97B0F8;
77+
}
78+
79+
.vis.timeline .item.job {
80+
cursor: pointer;
81+
}
82+
83+
.vis.timeline .item.job.succeeded {
84+
background-color: #D5DDF6;
85+
}
86+
87+
.vis.timeline .item.job.succeeded.selected {
88+
background-color: #D5DDF6;
89+
border-color: #97B0F8;
90+
z-index: auto;
91+
}
92+
93+
.legend-area rect.succeeded-job-legend {
94+
fill: #D5DDF6;
95+
stroke: #97B0F8;
96+
}
97+
98+
.vis.timeline .item.job.failed {
99+
background-color: #FF5475;
100+
}
101+
102+
.vis.timeline .item.job.failed.selected {
103+
background-color: #FF5475;
104+
border-color: #97B0F8;
105+
z-index: auto;
106+
}
107+
108+
.legend-area rect.failed-job-legend {
109+
fill: #FF5475;
110+
stroke: #97B0F8;
111+
}
112+
113+
.vis.timeline .item.job.running {
114+
background-color: #FDFFCA;
115+
}
116+
117+
.vis.timeline .item.job.running.selected {
118+
background-color: #FDFFCA;
119+
border-color: #97B0F8;
120+
z-index: auto;
121+
}
122+
123+
.legend-area rect.running-job-legend {
124+
fill: #FDFFCA;
125+
stroke: #97B0F8;
126+
}
127+
128+
.vis.timeline .item.executor.added {
129+
background-color: #D5DDF6;
130+
}
131+
132+
.legend-area rect.executor-added-legend {
133+
fill: #D5DDF6;
134+
stroke: #97B0F8;
135+
}
136+
137+
.vis.timeline .item.executor.removed {
138+
background-color: #EBCA59;
139+
}
140+
141+
.legend-area rect.executor-removed-legend {
142+
fill: #EBCA59;
143+
stroke: #97B0F8;
144+
}
145+
146+
.vis.timeline .item.executor.selected {
147+
border-color: #FFC200;
148+
background-color: #FFF785;
149+
z-index: 2;
150+
}
151+
152+
tr.corresponding-item-hover>td, tr.corresponding-item-hover>th {
153+
background-color: #FFE1FA !important;
154+
}
155+
156+
#application-timeline.collapsed {
157+
display: none;
158+
}
159+
160+
#job-timeline.collapsed {
161+
display: none;
162+
}
163+
164+
.control-panel {
165+
margin-bottom: 5px;
166+
}
167+
168+
span.expand-application-timeline, span.expand-job-timeline {
169+
cursor: pointer;
170+
}
171+
172+
.control-panel input+span {
173+
cursor: pointer;
174+
}
175+
176+
.vis.timeline .item.range .content {
177+
position: unset;
178+
}
179+
180+
.vis.timeline .item .tooltip-inner {
181+
max-width: unset !important;
182+
}

0 commit comments

Comments
 (0)