Skip to content

Commit a46e2c6

Browse files
committed
scalatest to test scope, harmonize Avro and Flume versions, remove direct Scala dependency, fix '2.10' in Flume dependency
1 parent 323cd92 commit a46e2c6

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

external/flume-sink/pom.xml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,20 @@
2525
<relativePath>../../pom.xml</relativePath>
2626
</parent>
2727

28+
<groupId>org.apache.spark</groupId>
2829
<artifactId>spark-streaming-flume-sink_2.10</artifactId>
2930
<properties>
3031
<sbt.project.name>streaming-flume-sink</sbt.project.name>
3132
</properties>
32-
3333
<packaging>jar</packaging>
3434
<name>Spark Project External Flume Sink</name>
3535
<url>http://spark.apache.org/</url>
36+
3637
<dependencies>
3738
<dependency>
3839
<groupId>org.apache.flume</groupId>
3940
<artifactId>flume-ng-sdk</artifactId>
40-
<version>1.4.0</version>
41+
<version>${flume.version}</version>
4142
<exclusions>
4243
<exclusion>
4344
<groupId>io.netty</groupId>
@@ -52,7 +53,7 @@
5253
<dependency>
5354
<groupId>org.apache.flume</groupId>
5455
<artifactId>flume-ng-core</artifactId>
55-
<version>1.4.0</version>
56+
<version>${flume.version}</version>
5657
<exclusions>
5758
<exclusion>
5859
<groupId>io.netty</groupId>
@@ -62,11 +63,7 @@
6263
<groupId>org.apache.thrift</groupId>
6364
<artifactId>libthrift</artifactId>
6465
</exclusion>
65-
</exclusions>
66-
</dependency>
67-
<dependency>
68-
<groupId>org.scala-lang</groupId>
69-
<artifactId>scala-library</artifactId>
66+
</exclusions>
7067
</dependency>
7168
<dependency>
7269
<groupId>org.scalatest</groupId>
@@ -97,7 +94,7 @@
9794
<plugin>
9895
<groupId>org.apache.avro</groupId>
9996
<artifactId>avro-maven-plugin</artifactId>
100-
<version>1.7.3</version>
97+
<version>${avro.version}</version>
10198
<configuration>
10299
<!-- Generate the output in the same directory as the sbt-avro-plugin -->
103100
<outputDirectory>${project.basedir}/target/scala-${scala.binary.version}/src_managed/main/compiled_avro</outputDirectory>

external/flume/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
4141
<version>${project.version}</version>
4242
</dependency>
43+
<dependency>
44+
<groupId>org.apache.spark</groupId>
45+
<artifactId>spark-streaming-flume-sink_${scala.binary.version}</artifactId>
46+
<version>${project.version}</version>
47+
</dependency>
4348
<dependency>
4449
<groupId>org.apache.spark</groupId>
4550
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
@@ -50,7 +55,7 @@
5055
<dependency>
5156
<groupId>org.apache.flume</groupId>
5257
<artifactId>flume-ng-sdk</artifactId>
53-
<version>1.4.0</version>
58+
<version>${flume.version}</version>
5459
<exclusions>
5560
<exclusion>
5661
<groupId>io.netty</groupId>
@@ -82,11 +87,6 @@
8287
<artifactId>junit-interface</artifactId>
8388
<scope>test</scope>
8489
</dependency>
85-
<dependency>
86-
<groupId>org.apache.spark</groupId>
87-
<artifactId>spark-streaming-flume-sink_2.10</artifactId>
88-
<version>${project.version}</version>
89-
</dependency>
9090
</dependencies>
9191
<build>
9292
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<protobuf.version>2.4.1</protobuf.version>
126126
<yarn.version>${hadoop.version}</yarn.version>
127127
<hbase.version>0.94.6</hbase.version>
128+
<flume.version>1.4.0</flume.version>
128129
<zookeeper.version>3.4.5</zookeeper.version>
129130
<hive.version>0.12.0</hive.version>
130131
<parquet.version>1.4.3</parquet.version>

0 commit comments

Comments
 (0)