Skip to content

Commit 3d53643

Browse files
author
Andrew Or
committed
[HOT FIX apache#6441] Fix maven build failures
Note that this patch reverts the changes in flume-sink because this module does not currently depend on Spark core, but the tests require it. There is not an easy way to make this work because mvn test dependencies are not transitive (MNG-1378). For now, we will leave the one test suite in flume-sink out until we figure out a better solution. This patch is mainly intended to unbreak the maven build.
1 parent 8c99793 commit 3d53643

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

external/flume-sink/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@
3535
<url>http://spark.apache.org/</url>
3636

3737
<dependencies>
38-
<dependency>
39-
<groupId>org.apache.spark</groupId>
40-
<artifactId>spark-core_${scala.binary.version}</artifactId>
41-
<version>${project.version}</version>
42-
<type>test-jar</type>
43-
<scope>test</scope>
44-
</dependency>
4538
<dependency>
4639
<groupId>org.apache.commons</groupId>
4740
<artifactId>commons-lang3</artifactId>

external/flume-sink/src/test/scala/org/apache/spark/streaming/flume/sink/SparkSinkSuite.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ import org.apache.flume.Context
3131
import org.apache.flume.channel.MemoryChannel
3232
import org.apache.flume.event.EventBuilder
3333
import org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory
34+
import org.scalatest.FunSuite
3435

35-
import org.apache.spark.SparkFunSuite
36-
37-
class SparkSinkSuite extends SparkFunSuite {
36+
class SparkSinkSuite extends FunSuite {
3837
val eventsPerBatch = 1000
3938
val channelCapacity = 5000
4039

mllib/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
<artifactId>spark-core_${scala.binary.version}</artifactId>
4141
<version>${project.version}</version>
4242
</dependency>
43+
<dependency>
44+
<groupId>org.apache.spark</groupId>
45+
<artifactId>spark-core_${scala.binary.version}</artifactId>
46+
<version>${project.version}</version>
47+
<type>test-jar</type>
48+
<scope>test</scope>
49+
</dependency>
4350
<dependency>
4451
<groupId>org.apache.spark</groupId>
4552
<artifactId>spark-streaming_${scala.binary.version}</artifactId>

0 commit comments

Comments
 (0)