Skip to content

Commit 8dfcceb

Browse files
committed
Merge branch 'master' of https://github.com/apache/spark into netty
Conflicts: core/src/main/scala/org/apache/spark/storage/BlockManager.scala project/MimaExcludes.scala
2 parents 322dfc1 + 6377ada commit 8dfcceb

8,380 files changed

Lines changed: 43126 additions & 48377 deletions

File tree

Some content is hidden

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

.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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To build Spark and its example programs, run:
2525

2626
(You do not need to do this if you downloaded a pre-built package.)
2727
More detailed documentation is available from the project site, at
28-
["Building Spark"](http://spark.apache.org/docs/latest/building-spark.html).
28+
["Building Spark with Maven"](http://spark.apache.org/docs/latest/building-with-maven.html).
2929

3030
## Interactive Scala Shell
3131

assembly/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@
197197
<artifactId>spark-hive_${scala.binary.version}</artifactId>
198198
<version>${project.version}</version>
199199
</dependency>
200+
</dependencies>
201+
</profile>
202+
<profile>
203+
<!-- TODO: Move this to "hive" profile once 0.13 JDBC is supported -->
204+
<id>hive-0.12.0</id>
205+
<dependencies>
200206
<dependency>
201207
<groupId>org.apache.spark</groupId>
202208
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>

core/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@
137137
<groupId>com.twitter</groupId>
138138
<artifactId>chill-java</artifactId>
139139
</dependency>
140+
<dependency>
141+
<groupId>org.roaringbitmap</groupId>
142+
<artifactId>RoaringBitmap</artifactId>
143+
</dependency>
140144
<dependency>
141145
<groupId>commons-net</groupId>
142146
<artifactId>commons-net</artifactId>
@@ -248,6 +252,11 @@
248252
</exclusion>
249253
</exclusions>
250254
</dependency>
255+
<dependency>
256+
<groupId>org.seleniumhq.selenium</groupId>
257+
<artifactId>selenium-java</artifactId>
258+
<scope>test</scope>
259+
</dependency>
251260
<dependency>
252261
<groupId>org.scalatest</groupId>
253262
<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);
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.api.java;
19+
20+
21+
import java.util.List;
22+
import java.util.concurrent.Future;
23+
24+
public interface JavaFutureAction<T> extends Future<T> {
25+
26+
/**
27+
* Returns the job IDs run by the underlying async operation.
28+
*
29+
* This returns the current snapshot of the job list. Certain operations may run multiple
30+
* jobs, so multiple calls to this method may return different lists.
31+
*/
32+
List<Integer> jobIds();
33+
}

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)