Skip to content

Commit 691fa9f

Browse files
committed
Merge remote-tracking branch 'apache-spark/master'
2 parents 047df0b + b196056 commit 691fa9f

File tree

1,399 files changed

+89785
-27332
lines changed

Some content is hidden

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

1,399 files changed

+89785
-27332
lines changed

.gitignore

+11-3
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@
88
*.pyc
99
.idea/
1010
.idea_modules/
11-
sbt/*.jar
11+
build/*.jar
1212
.settings
1313
.cache
14+
cache
1415
.generated-mima*
15-
/build/
1616
work/
1717
out/
1818
.DS_Store
1919
third_party/libmesos.so
2020
third_party/libmesos.dylib
21+
build/apache-maven*
22+
build/zinc*
23+
build/scala*
2124
conf/java-opts
2225
conf/*.sh
2326
conf/*.cmd
@@ -51,10 +54,11 @@ checkpoint
5154
derby.log
5255
dist/
5356
dev/create-release/*txt
54-
dev/create-release/*new
57+
dev/create-release/*final
5558
spark-*-bin-*.tgz
5659
unit-tests.log
5760
/lib/
61+
ec2/lib/
5862
rat-results.txt
5963
scalastyle.txt
6064
scalastyle-output.xml
@@ -65,3 +69,7 @@ metastore/
6569
warehouse/
6670
TempStatsStore/
6771
sql/hive-thriftserver/test_warehouses
72+
73+
#ADDED By Yijie
74+
sql/core/src/main/scala/org/apache/spark/sql/SYJT.scala
75+
sbt/

.rat-excludes

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
target
2+
cache
23
.gitignore
34
.gitattributes
45
.project
@@ -18,6 +19,7 @@ fairscheduler.xml.template
1819
spark-defaults.conf.template
1920
log4j.properties
2021
log4j.properties.template
22+
metrics.properties
2123
metrics.properties.template
2224
slaves
2325
slaves.template
@@ -64,3 +66,4 @@ dist/*
6466
logs
6567
.*scalastyle-output.xml
6668
.*dependency-reduced-pom.xml
69+
known_translations

LICENSE

+18-1
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
@@ -770,6 +771,22 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
770771
See the License for the specific language governing permissions and
771772
limitations under the License.
772773

774+
========================================================================
775+
For TestTimSort (core/src/test/java/org/apache/spark/util/collection/TestTimSort.java):
776+
========================================================================
777+
Copyright (C) 2015 Stijn de Gouw
778+
779+
Licensed under the Apache License, Version 2.0 (the "License");
780+
you may not use this file except in compliance with the License.
781+
You may obtain a copy of the License at
782+
783+
http://www.apache.org/licenses/LICENSE-2.0
784+
785+
Unless required by applicable law or agreed to in writing, software
786+
distributed under the License is distributed on an "AS IS" BASIS,
787+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
788+
See the License for the specific language governing permissions and
789+
limitations under the License.
773790

774791
========================================================================
775792
For LimitedInputStream

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To build Spark and its example programs, run:
2626

2727
(You do not need to do this if you downloaded a pre-built package.)
2828
More detailed documentation is available from the project site, at
29-
["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).
3030

3131
## Interactive Scala Shell
3232

assembly/pom.xml

+30-141
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,9 @@
3636
<spark.jar.dir>scala-${scala.binary.version}</spark.jar.dir>
3737
<spark.jar.basename>spark-assembly-${project.version}-hadoop${hadoop.version}.jar</spark.jar.basename>
3838
<spark.jar>${project.build.directory}/${spark.jar.dir}/${spark.jar.basename}</spark.jar>
39-
<deb.pkg.name>spark</deb.pkg.name>
40-
<deb.install.path>/usr/share/spark</deb.install.path>
41-
<deb.user>root</deb.user>
42-
<deb.bin.filemode>744</deb.bin.filemode>
4339
</properties>
4440

4541
<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>
5242
<dependency>
5343
<groupId>org.apache.spark</groupId>
5444
<artifactId>spark-core_${scala.binary.version}</artifactId>
@@ -124,6 +114,16 @@
124114
<exclude>META-INF/*.RSA</exclude>
125115
</excludes>
126116
</filter>
117+
<filter>
118+
<!-- Exclude libgfortran, libgcc for license issues -->
119+
<artifact>org.jblas:jblas</artifact>
120+
<excludes>
121+
<!-- Linux amd64 is OK; not statically linked -->
122+
<exclude>lib/static/Linux/i386/**</exclude>
123+
<exclude>lib/static/Mac OS X/**</exclude>
124+
<exclude>lib/static/Windows/**</exclude>
125+
</excludes>
126+
</filter>
127127
</filters>
128128
</configuration>
129129
<executions>
@@ -133,20 +133,6 @@
133133
<goal>shade</goal>
134134
</goals>
135135
<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>
150136
<transformers>
151137
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
152138
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
@@ -169,16 +155,6 @@
169155
</build>
170156

171157
<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>
182158
<profile>
183159
<id>yarn</id>
184160
<dependencies>
@@ -247,113 +223,6 @@
247223
</plugins>
248224
</build>
249225
</profile>
250-
<profile>
251-
<id>deb</id>
252-
<build>
253-
<plugins>
254-
<plugin>
255-
<groupId>org.codehaus.mojo</groupId>
256-
<artifactId>buildnumber-maven-plugin</artifactId>
257-
<version>1.2</version>
258-
<executions>
259-
<execution>
260-
<phase>validate</phase>
261-
<goals>
262-
<goal>create</goal>
263-
</goals>
264-
<configuration>
265-
<shortRevisionLength>8</shortRevisionLength>
266-
</configuration>
267-
</execution>
268-
</executions>
269-
</plugin>
270-
<plugin>
271-
<groupId>org.vafer</groupId>
272-
<artifactId>jdeb</artifactId>
273-
<version>0.11</version>
274-
<executions>
275-
<execution>
276-
<phase>package</phase>
277-
<goals>
278-
<goal>jdeb</goal>
279-
</goals>
280-
<configuration>
281-
<deb>${project.build.directory}/${deb.pkg.name}_${project.version}-${buildNumber}_all.deb</deb>
282-
<attach>false</attach>
283-
<compression>gzip</compression>
284-
<dataSet>
285-
<data>
286-
<src>${spark.jar}</src>
287-
<type>file</type>
288-
<mapper>
289-
<type>perm</type>
290-
<user>${deb.user}</user>
291-
<group>${deb.user}</group>
292-
<prefix>${deb.install.path}/jars</prefix>
293-
</mapper>
294-
</data>
295-
<data>
296-
<src>${basedir}/src/deb/RELEASE</src>
297-
<type>file</type>
298-
<mapper>
299-
<type>perm</type>
300-
<user>${deb.user}</user>
301-
<group>${deb.user}</group>
302-
<prefix>${deb.install.path}</prefix>
303-
</mapper>
304-
</data>
305-
<data>
306-
<src>${basedir}/../conf</src>
307-
<type>directory</type>
308-
<mapper>
309-
<type>perm</type>
310-
<user>${deb.user}</user>
311-
<group>${deb.user}</group>
312-
<prefix>${deb.install.path}/conf</prefix>
313-
<filemode>744</filemode>
314-
</mapper>
315-
</data>
316-
<data>
317-
<src>${basedir}/../bin</src>
318-
<type>directory</type>
319-
<mapper>
320-
<type>perm</type>
321-
<user>${deb.user}</user>
322-
<group>${deb.user}</group>
323-
<prefix>${deb.install.path}/bin</prefix>
324-
<filemode>${deb.bin.filemode}</filemode>
325-
</mapper>
326-
</data>
327-
<data>
328-
<src>${basedir}/../sbin</src>
329-
<type>directory</type>
330-
<mapper>
331-
<type>perm</type>
332-
<user>${deb.user}</user>
333-
<group>${deb.user}</group>
334-
<prefix>${deb.install.path}/sbin</prefix>
335-
<filemode>744</filemode>
336-
</mapper>
337-
</data>
338-
<data>
339-
<src>${basedir}/../python</src>
340-
<type>directory</type>
341-
<mapper>
342-
<type>perm</type>
343-
<user>${deb.user}</user>
344-
<group>${deb.user}</group>
345-
<prefix>${deb.install.path}/python</prefix>
346-
<filemode>744</filemode>
347-
</mapper>
348-
</data>
349-
</dataSet>
350-
</configuration>
351-
</execution>
352-
</executions>
353-
</plugin>
354-
</plugins>
355-
</build>
356-
</profile>
357226
<profile>
358227
<id>kinesis-asl</id>
359228
<dependencies>
@@ -364,5 +233,25 @@
364233
</dependency>
365234
</dependencies>
366235
</profile>
236+
237+
<!-- Profiles that disable inclusion of certain dependencies. -->
238+
<profile>
239+
<id>hadoop-provided</id>
240+
<properties>
241+
<hadoop.deps.scope>provided</hadoop.deps.scope>
242+
</properties>
243+
</profile>
244+
<profile>
245+
<id>hive-provided</id>
246+
<properties>
247+
<hive.deps.scope>provided</hive.deps.scope>
248+
</properties>
249+
</profile>
250+
<profile>
251+
<id>parquet-provided</id>
252+
<properties>
253+
<parquet.deps.scope>provided</parquet.deps.scope>
254+
</properties>
255+
</profile>
367256
</profiles>
368257
</project>

assembly/src/deb/RELEASE

-2
This file was deleted.

assembly/src/deb/control/control

-8
This file was deleted.

bagel/pom.xml

-15
Original file line numberDiff line numberDiff line change
@@ -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

+2-2
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

+21
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)