Skip to content

Commit e2fd6bc

Browse files
committed
Merge branch 'master' of git://git.apache.org/spark into SPARK-3657
2 parents 70b8882 + 0ac52e3 commit e2fd6bc

File tree

8,357 files changed

+42496
-48362
lines changed

Some content is hidden

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

8,357 files changed

+42496
-48362
lines changed

.rat-excludes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ sbt-launch-lib.bash
4848
plugins.sbt
4949
work
5050
.*\.q
51+
.*\.qv
5152
golden
5253
test.out/*
5354
.*iml

LICENSE

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -712,18 +712,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
712712
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
713713
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
714714

715-
========================================================================
716-
For colt:
717-
========================================================================
718-
719-
Copyright (c) 1999 CERN - European Organization for Nuclear Research.
720-
Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. CERN makes no representations about the suitability of this software for any purpose. It is provided "as is" without expressed or implied warranty.
721-
722-
Packages hep.aida.*
723-
724-
Written by Pavel Binko, Dino Ferrero Merlino, Wolfgang Hoschek, Tony Johnson, Andreas Pfeiffer, and others. Check the FreeHEP home page for more info. Permission to use and/or redistribute this work is granted under the terms of the LGPL License, with the exception that any usage related to military applications is expressly forbidden. The software and documentation made available under the terms of this license are provided with no warranty.
725-
726-
727715
========================================================================
728716
For SnapTree:
729717
========================================================================

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ storage systems. Because the protocols have changed in different versions of
8484
Hadoop, you must build Spark against the same version that your cluster runs.
8585

8686
Please refer to the build documentation at
87-
["Specifying the Hadoop Version"](http://spark.apache.org/docs/latest/building-spark.html#specifying-the-hadoop-version)
87+
["Specifying the Hadoop Version"](http://spark.apache.org/docs/latest/building-with-maven.html#specifying-the-hadoop-version)
8888
for detailed guidance on building for a particular distribution of Hadoop, including
8989
building for particular Hive and Hive Thriftserver distributions. See also
9090
["Third Party Hadoop Distributions"](http://spark.apache.org/docs/latest/hadoop-third-party-distributions.html)

assembly/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@
146146
<exclude>com/google/common/base/Present*</exclude>
147147
</excludes>
148148
</relocation>
149+
<relocation>
150+
<pattern>org.apache.commons.math3</pattern>
151+
<shadedPattern>org.spark-project.commons.math3</shadedPattern>
152+
</relocation>
149153
</relocations>
150154
<transformers>
151155
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
@@ -197,6 +201,12 @@
197201
<artifactId>spark-hive_${scala.binary.version}</artifactId>
198202
<version>${project.version}</version>
199203
</dependency>
204+
</dependencies>
205+
</profile>
206+
<profile>
207+
<!-- TODO: Move this to "hive" profile once 0.13 JDBC is supported -->
208+
<id>hive-0.12.0</id>
209+
<dependencies>
200210
<dependency>
201211
<groupId>org.apache.spark</groupId>
202212
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>

core/pom.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@
8585
<dependency>
8686
<groupId>org.apache.commons</groupId>
8787
<artifactId>commons-math3</artifactId>
88-
<version>3.3</version>
89-
<scope>test</scope>
9088
</dependency>
9189
<dependency>
9290
<groupId>com.google.code.findbugs</groupId>
@@ -132,6 +130,10 @@
132130
<groupId>com.twitter</groupId>
133131
<artifactId>chill-java</artifactId>
134132
</dependency>
133+
<dependency>
134+
<groupId>org.roaringbitmap</groupId>
135+
<artifactId>RoaringBitmap</artifactId>
136+
</dependency>
135137
<dependency>
136138
<groupId>commons-net</groupId>
137139
<artifactId>commons-net</artifactId>
@@ -158,10 +160,6 @@
158160
<artifactId>json4s-jackson_${scala.binary.version}</artifactId>
159161
<version>3.2.10</version>
160162
</dependency>
161-
<dependency>
162-
<groupId>colt</groupId>
163-
<artifactId>colt</artifactId>
164-
</dependency>
165163
<dependency>
166164
<groupId>org.apache.mesos</groupId>
167165
<artifactId>mesos</artifactId>
@@ -243,6 +241,11 @@
243241
</exclusion>
244242
</exclusions>
245243
</dependency>
244+
<dependency>
245+
<groupId>org.seleniumhq.selenium</groupId>
246+
<artifactId>selenium-java</artifactId>
247+
<scope>test</scope>
248+
</dependency>
246249
<dependency>
247250
<groupId>org.scalatest</groupId>
248251
<artifactId>scalatest_${scala.binary.version}</artifactId>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
package org.apache.spark;
19+
20+
public enum JobExecutionStatus {
21+
RUNNING,
22+
SUCCEEDED,
23+
FAILED,
24+
UNKNOWN
25+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
package org.apache.spark;
19+
20+
/**
21+
* Exposes information about Spark Jobs.
22+
*
23+
* This interface is not designed to be implemented outside of Spark. We may add additional methods
24+
* which may break binary compatibility with outside implementations.
25+
*/
26+
public interface SparkJobInfo {
27+
int jobId();
28+
int[] stageIds();
29+
JobExecutionStatus status();
30+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
package org.apache.spark;
19+
20+
/**
21+
* Exposes information about Spark Stages.
22+
*
23+
* This interface is not designed to be implemented outside of Spark. We may add additional methods
24+
* which may break binary compatibility with outside implementations.
25+
*/
26+
public interface SparkStageInfo {
27+
int stageId();
28+
int currentAttemptId();
29+
String name();
30+
int numTasks();
31+
int numActiveTasks();
32+
int numCompletedTasks();
33+
int numFailedTasks();
34+
}

core/src/main/java/org/apache/spark/TaskContext.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,13 @@ static void unset() {
7171
/**
7272
* Add a (Java friendly) listener to be executed on task completion.
7373
* This will be called in all situation - success, failure, or cancellation.
74-
* <p/>
7574
* An example use is for HadoopRDD to register a callback to close the input stream.
7675
*/
7776
public abstract TaskContext addTaskCompletionListener(TaskCompletionListener listener);
7877

7978
/**
8079
* Add a listener in the form of a Scala closure to be executed on task completion.
8180
* This will be called in all situations - success, failure, or cancellation.
82-
* <p/>
8381
* An example use is for HadoopRDD to register a callback to close the input stream.
8482
*/
8583
public abstract TaskContext addTaskCompletionListener(final Function1<TaskContext, Unit> f);

core/src/main/java/org/apache/spark/api/java/function/PairFunction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
import scala.Tuple2;
2323

2424
/**
25-
* A function that returns key-value pairs (Tuple2<K, V>), and can be used to construct PairRDDs.
25+
* A function that returns key-value pairs (Tuple2&lt;K, V&gt;), and can be used to
26+
* construct PairRDDs.
2627
*/
2728
public interface PairFunction<T, K, V> extends Serializable {
2829
public Tuple2<K, V> call(T t) throws Exception;

0 commit comments

Comments
 (0)