Skip to content

Commit b08e865

Browse files
committed
Merge pull request #1 from apache/master
Update to latest Spark master
2 parents f799700 + 6580929 commit b08e865

File tree

9,614 files changed

+157931
-83862
lines changed

Some content is hidden

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

9,614 files changed

+157931
-83862
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.bat text eol=crlf
2+
*.cmd text eol=crlf

.gitignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@
55
*.ipr
66
*.iml
77
*.iws
8+
*.pyc
89
.idea/
910
.idea_modules/
10-
sbt/*.jar
11+
build/*.jar
1112
.settings
1213
.cache
14+
cache
1315
.generated-mima*
14-
/build/
1516
work/
1617
out/
1718
.DS_Store
1819
third_party/libmesos.so
1920
third_party/libmesos.dylib
21+
build/apache-maven*
22+
build/zinc*
23+
build/scala*
2024
conf/java-opts
2125
conf/*.sh
2226
conf/*.cmd
@@ -49,9 +53,12 @@ dependency-reduced-pom.xml
4953
checkpoint
5054
derby.log
5155
dist/
52-
spark-*-bin.tar.gz
56+
dev/create-release/*txt
57+
dev/create-release/*final
58+
spark-*-bin-*.tgz
5359
unit-tests.log
5460
/lib/
61+
ec2/lib/
5562
rat-results.txt
5663
scalastyle.txt
5764
scalastyle-output.xml

.rat-excludes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
target
22
.gitignore
3+
.gitattributes
34
.project
45
.classpath
56
.mima-excludes
@@ -43,11 +44,13 @@ SparkImports.scala
4344
SparkJLineCompletion.scala
4445
SparkJLineReader.scala
4546
SparkMemberHandlers.scala
47+
SparkReplReporter.scala
4648
sbt
4749
sbt-launch-lib.bash
4850
plugins.sbt
4951
work
5052
.*\.q
53+
.*\.qv
5154
golden
5255
test.out/*
5356
.*iml
@@ -61,3 +64,4 @@ dist/*
6164
logs
6265
.*scalastyle-output.xml
6366
.*dependency-reduced-pom.xml
67+
known_translations

LICENSE

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,8 @@ THE SOFTWARE.
646646

647647
========================================================================
648648
For Scala Interpreter classes (all .scala files in repl/src/main/scala
649-
except for Main.Scala, SparkHelper.scala and ExecutorClassLoader.scala):
649+
except for Main.Scala, SparkHelper.scala and ExecutorClassLoader.scala),
650+
and for SerializableMapWrapper in JavaUtils.scala:
650651
========================================================================
651652

652653
Copyright (c) 2002-2013 EPFL
@@ -712,18 +713,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
712713
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
713714
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
714715

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-
727716
========================================================================
728717
For SnapTree:
729718
========================================================================
@@ -766,7 +755,7 @@ SUCH DAMAGE.
766755

767756

768757
========================================================================
769-
For Timsort (core/src/main/java/org/apache/spark/util/collection/Sorter.java):
758+
For Timsort (core/src/main/java/org/apache/spark/util/collection/TimSort.java):
770759
========================================================================
771760
Copyright (C) 2008 The Android Open Source Project
772761

@@ -783,6 +772,25 @@ See the License for the specific language governing permissions and
783772
limitations under the License.
784773

785774

775+
========================================================================
776+
For LimitedInputStream
777+
(network/common/src/main/java/org/apache/spark/network/util/LimitedInputStream.java):
778+
========================================================================
779+
Copyright (C) 2007 The Guava Authors
780+
781+
Licensed under the Apache License, Version 2.0 (the "License");
782+
you may not use this file except in compliance with the License.
783+
You may obtain a copy of the License at
784+
785+
http://www.apache.org/licenses/LICENSE-2.0
786+
787+
Unless required by applicable law or agreed to in writing, software
788+
distributed under the License is distributed on an "AS IS" BASIS,
789+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
790+
See the License for the specific language governing permissions and
791+
limitations under the License.
792+
793+
786794
========================================================================
787795
BSD-style licenses
788796
========================================================================

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ and Spark Streaming for stream processing.
1313
## Online Documentation
1414

1515
You can find the latest Spark documentation, including a programming
16-
guide, on the [project web page](http://spark.apache.org/documentation.html).
16+
guide, on the [project web page](http://spark.apache.org/documentation.html)
17+
and [project wiki](https://cwiki.apache.org/confluence/display/SPARK).
1718
This README file only contains basic setup instructions.
1819

1920
## Building Spark
@@ -25,7 +26,7 @@ To build Spark and its example programs, run:
2526

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

3031
## Interactive Scala Shell
3132

@@ -84,7 +85,7 @@ storage systems. Because the protocols have changed in different versions of
8485
Hadoop, you must build Spark against the same version that your cluster runs.
8586

8687
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)
88+
["Specifying the Hadoop Version"](http://spark.apache.org/docs/latest/building-with-maven.html#specifying-the-hadoop-version)
8889
for detailed guidance on building for a particular distribution of Hadoop, including
8990
building for particular Hive and Hive Thriftserver distributions. See also
9091
["Third Party Hadoop Distributions"](http://spark.apache.org/docs/latest/hadoop-third-party-distributions.html)

assembly/pom.xml

Lines changed: 30 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.apache.spark</groupId>
2323
<artifactId>spark-parent</artifactId>
24-
<version>1.2.0-SNAPSHOT</version>
24+
<version>1.3.0-SNAPSHOT</version>
2525
<relativePath>../pom.xml</relativePath>
2626
</parent>
2727

@@ -43,12 +43,6 @@
4343
</properties>
4444

4545
<dependencies>
46-
<!-- Promote Guava to compile scope in this module so it's included while shading. -->
47-
<dependency>
48-
<groupId>com.google.guava</groupId>
49-
<artifactId>guava</artifactId>
50-
<scope>compile</scope>
51-
</dependency>
5246
<dependency>
5347
<groupId>org.apache.spark</groupId>
5448
<artifactId>spark-core_${scala.binary.version}</artifactId>
@@ -66,22 +60,22 @@
6660
</dependency>
6761
<dependency>
6862
<groupId>org.apache.spark</groupId>
69-
<artifactId>spark-repl_${scala.binary.version}</artifactId>
63+
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
7064
<version>${project.version}</version>
7165
</dependency>
7266
<dependency>
7367
<groupId>org.apache.spark</groupId>
74-
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
68+
<artifactId>spark-graphx_${scala.binary.version}</artifactId>
7569
<version>${project.version}</version>
7670
</dependency>
7771
<dependency>
7872
<groupId>org.apache.spark</groupId>
79-
<artifactId>spark-graphx_${scala.binary.version}</artifactId>
73+
<artifactId>spark-sql_${scala.binary.version}</artifactId>
8074
<version>${project.version}</version>
8175
</dependency>
8276
<dependency>
8377
<groupId>org.apache.spark</groupId>
84-
<artifactId>spark-sql_${scala.binary.version}</artifactId>
78+
<artifactId>spark-repl_${scala.binary.version}</artifactId>
8579
<version>${project.version}</version>
8680
</dependency>
8781
</dependencies>
@@ -133,20 +127,6 @@
133127
<goal>shade</goal>
134128
</goals>
135129
<configuration>
136-
<relocations>
137-
<relocation>
138-
<pattern>com.google</pattern>
139-
<shadedPattern>org.spark-project.guava</shadedPattern>
140-
<includes>
141-
<include>com.google.common.**</include>
142-
</includes>
143-
<excludes>
144-
<exclude>com/google/common/base/Absent*</exclude>
145-
<exclude>com/google/common/base/Optional*</exclude>
146-
<exclude>com/google/common/base/Present*</exclude>
147-
</excludes>
148-
</relocation>
149-
</relocations>
150130
<transformers>
151131
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
152132
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
@@ -169,16 +149,6 @@
169149
</build>
170150

171151
<profiles>
172-
<profile>
173-
<id>yarn-alpha</id>
174-
<dependencies>
175-
<dependency>
176-
<groupId>org.apache.spark</groupId>
177-
<artifactId>spark-yarn-alpha_${scala.binary.version}</artifactId>
178-
<version>${project.version}</version>
179-
</dependency>
180-
</dependencies>
181-
</profile>
182152
<profile>
183153
<id>yarn</id>
184154
<dependencies>
@@ -197,6 +167,11 @@
197167
<artifactId>spark-hive_${scala.binary.version}</artifactId>
198168
<version>${project.version}</version>
199169
</dependency>
170+
</dependencies>
171+
</profile>
172+
<profile>
173+
<id>hive-thriftserver</id>
174+
<dependencies>
200175
<dependency>
201176
<groupId>org.apache.spark</groupId>
202177
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
@@ -359,5 +334,25 @@
359334
</dependency>
360335
</dependencies>
361336
</profile>
337+
338+
<!-- Profiles that disable inclusion of certain dependencies. -->
339+
<profile>
340+
<id>hadoop-provided</id>
341+
<properties>
342+
<hadoop.deps.scope>provided</hadoop.deps.scope>
343+
</properties>
344+
</profile>
345+
<profile>
346+
<id>hive-provided</id>
347+
<properties>
348+
<hive.deps.scope>provided</hive.deps.scope>
349+
</properties>
350+
</profile>
351+
<profile>
352+
<id>parquet-provided</id>
353+
<properties>
354+
<parquet.deps.scope>provided</parquet.deps.scope>
355+
</properties>
356+
</profile>
362357
</profiles>
363358
</project>

bagel/pom.xml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.apache.spark</groupId>
2323
<artifactId>spark-parent</artifactId>
24-
<version>1.2.0-SNAPSHOT</version>
24+
<version>1.3.0-SNAPSHOT</version>
2525
<relativePath>../pom.xml</relativePath>
2626
</parent>
2727

@@ -40,15 +40,6 @@
4040
<artifactId>spark-core_${scala.binary.version}</artifactId>
4141
<version>${project.version}</version>
4242
</dependency>
43-
<dependency>
44-
<groupId>org.eclipse.jetty</groupId>
45-
<artifactId>jetty-server</artifactId>
46-
</dependency>
47-
<dependency>
48-
<groupId>org.scalatest</groupId>
49-
<artifactId>scalatest_${scala.binary.version}</artifactId>
50-
<scope>test</scope>
51-
</dependency>
5243
<dependency>
5344
<groupId>org.scalacheck</groupId>
5445
<artifactId>scalacheck_${scala.binary.version}</artifactId>
@@ -58,11 +49,5 @@
5849
<build>
5950
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
6051
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
61-
<plugins>
62-
<plugin>
63-
<groupId>org.scalatest</groupId>
64-
<artifactId>scalatest-maven-plugin</artifactId>
65-
</plugin>
66-
</plugins>
6752
</build>
6853
</project>

bagel/src/test/resources/log4j.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18-
# Set everything to be logged to the file bagel/target/unit-tests.log
18+
# Set everything to be logged to the file target/unit-tests.log
1919
log4j.rootCategory=INFO, file
2020
log4j.appender.file=org.apache.log4j.FileAppender
21-
log4j.appender.file.append=false
21+
log4j.appender.file.append=true
2222
log4j.appender.file.file=target/unit-tests.log
2323
log4j.appender.file.layout=org.apache.log4j.PatternLayout
2424
log4j.appender.file.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss.SSS} %t %p %c{1}: %m%n

bin/beeline.cmd

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@echo off
2+
3+
rem
4+
rem Licensed to the Apache Software Foundation (ASF) under one or more
5+
rem contributor license agreements. See the NOTICE file distributed with
6+
rem this work for additional information regarding copyright ownership.
7+
rem The ASF licenses this file to You under the Apache License, Version 2.0
8+
rem (the "License"); you may not use this file except in compliance with
9+
rem the License. You may obtain a copy of the License at
10+
rem
11+
rem http://www.apache.org/licenses/LICENSE-2.0
12+
rem
13+
rem Unless required by applicable law or agreed to in writing, software
14+
rem distributed under the License is distributed on an "AS IS" BASIS,
15+
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
rem See the License for the specific language governing permissions and
17+
rem limitations under the License.
18+
rem
19+
20+
set SPARK_HOME=%~dp0..
21+
cmd /V /E /C %SPARK_HOME%\bin\spark-class.cmd org.apache.hive.beeline.BeeLine %*

0 commit comments

Comments
 (0)