Skip to content

Commit 9cce346

Browse files
committed
Merge remote-tracking branch 'origin/master' into newCodeGen
Conflicts: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
2 parents 1a61293 + c183b92 commit 9cce346

File tree

188 files changed

+4975
-1072
lines changed

Some content is hidden

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

188 files changed

+4975
-1072
lines changed

LICENSE

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ Written by Pavel Binko, Dino Ferrero Merlino, Wolfgang Hoschek, Tony Johnson, An
442442

443443

444444
========================================================================
445-
Fo SnapTree:
445+
For SnapTree:
446446
========================================================================
447447

448448
SNAPTREE LICENSE
@@ -482,6 +482,24 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
482482
SUCH DAMAGE.
483483

484484

485+
========================================================================
486+
For Timsort (core/src/main/java/org/apache/spark/util/collection/Sorter.java):
487+
========================================================================
488+
Copyright (C) 2008 The Android Open Source Project
489+
490+
Licensed under the Apache License, Version 2.0 (the "License");
491+
you may not use this file except in compliance with the License.
492+
You may obtain a copy of the License at
493+
494+
http://www.apache.org/licenses/LICENSE-2.0
495+
496+
Unless required by applicable law or agreed to in writing, software
497+
distributed under the License is distributed on an "AS IS" BASIS,
498+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
499+
See the License for the specific language governing permissions and
500+
limitations under the License.
501+
502+
485503
========================================================================
486504
BSD-style licenses
487505
========================================================================

assembly/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<deb.pkg.name>spark</deb.pkg.name>
4040
<deb.install.path>/usr/share/spark</deb.install.path>
4141
<deb.user>root</deb.user>
42+
<deb.bin.filemode>744</deb.bin.filemode>
4243
</properties>
4344

4445
<dependencies>
@@ -276,7 +277,7 @@
276277
<user>${deb.user}</user>
277278
<group>${deb.user}</group>
278279
<prefix>${deb.install.path}/bin</prefix>
279-
<filemode>744</filemode>
280+
<filemode>${deb.bin.filemode}</filemode>
280281
</mapper>
281282
</data>
282283
<data>

bagel/src/main/scala/org/apache/spark/bagel/Bagel.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ object Bagel extends Logging {
7272
var verts = vertices
7373
var msgs = messages
7474
var noActivity = false
75+
var lastRDD: RDD[(K, (V, Array[M]))] = null
7576
do {
7677
logInfo("Starting superstep " + superstep + ".")
7778
val startTime = System.currentTimeMillis
@@ -83,6 +84,10 @@ object Bagel extends Logging {
8384
val superstep_ = superstep // Create a read-only copy of superstep for capture in closure
8485
val (processed, numMsgs, numActiveVerts) =
8586
comp[K, V, M, C](sc, grouped, compute(_, _, aggregated, superstep_), storageLevel)
87+
if (lastRDD != null) {
88+
lastRDD.unpersist(false)
89+
}
90+
lastRDD = processed
8691

8792
val timeTaken = System.currentTimeMillis - startTime
8893
logInfo("Superstep %d took %d s".format(superstep, timeTaken / 1000))

0 commit comments

Comments
 (0)