Skip to content

Commit 8a9d9cc

Browse files
jerryshaosrowen
authored andcommitted
[SPARK-7050] [BUILD] Fix Python Kafka test assembly jar not found issue under Maven build
To fix Spark Streaming unit test with maven build. Previously the name and path of maven generated jar is different from sbt, which will lead to following exception. This fix keep the same behavior with both Maven and sbt build. ``` Failed to find Spark Streaming Kafka assembly jar in /home/xyz/spark/external/kafka-assembly You need to build Spark with 'build/sbt assembly/assembly streaming-kafka-assembly/assembly' or 'build/mvn package' before running this program ``` Author: jerryshao <saisai.shao@intel.com> Closes #5632 from jerryshao/SPARK-7050 and squashes the following commits: 74b068d [jerryshao] Fix mvn build issue
1 parent 351a36d commit 8a9d9cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

external/kafka-assembly/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<artifactId>maven-shade-plugin</artifactId>
5959
<configuration>
6060
<shadedArtifactAttached>false</shadedArtifactAttached>
61+
<outputFile>${project.build.directory}/scala-${scala.binary.version}/spark-streaming-kafka-assembly-${project.version}.jar</outputFile>
6162
<artifactSet>
6263
<includes>
6364
<include>*:*</include>

0 commit comments

Comments
 (0)