Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit 88f88e8

Browse files
Solved weird Spark dependency issues with conflicting versions.
1 parent 6fe5728 commit 88f88e8

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@
9595
<groupId>${project.groupId}</groupId>
9696
<artifactId>sansa-rdf-spark_${scala.binary.version}</artifactId>
9797
<version>${sansa.rdf.version}</version>
98+
<!-- we have to exclude an old version here transitively included by a Kafka dependency of Spark
99+
Don't know how Spark 2.3 is able to work with Kafka 0.10 right now ...
100+
-->
101+
<exclusions>
102+
<exclusion>
103+
<groupId>net.jpountz.lz4</groupId>
104+
<artifactId>lz4</artifactId>
105+
</exclusion>
106+
</exclusions>
98107
</dependency>
99108
<dependency>
100109
<groupId>${project.groupId}</groupId>
@@ -148,6 +157,16 @@
148157
<artifactId>spark-sql_${scala.binary.version}</artifactId>
149158
<version>${spark.version}</version>
150159
</dependency>
160+
<dependency>
161+
<groupId>org.apache.spark</groupId>
162+
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
163+
<version>${spark.version}</version>
164+
</dependency>
165+
<dependency>
166+
<groupId>org.apache.spark</groupId>
167+
<artifactId>spark-streaming-kafka-0-10_${scala.binary.version}</artifactId>
168+
<version>${spark.version}</version>
169+
</dependency>
151170

152171
<!-- Apache Flink -->
153172
<dependency>

sansa-inference-spark/pom.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@
123123

124124
<!-- Graph API -->
125125
<dependency>
126-
<groupId>com.assembla.scala-incubator</groupId>
126+
<groupId>org.scala-graph</groupId>
127127
<artifactId>graph-core_${scala.binary.version}</artifactId>
128128
</dependency>
129129
<dependency>
130-
<groupId>com.assembla.scala-incubator</groupId>
130+
<groupId>org.scala-graph</groupId>
131131
<artifactId>graph-dot_${scala.binary.version}</artifactId>
132132
</dependency>
133133
<dependency>
@@ -210,6 +210,16 @@
210210
<groupId>org.apache.calcite</groupId>
211211
<artifactId>calcite-core</artifactId>
212212
<!--<scope>provided</scope>-->
213+
<exclusions>
214+
<exclusion>
215+
<groupId>org.codehaus.janino</groupId>
216+
<artifactId>janino</artifactId>
217+
</exclusion>
218+
<exclusion>
219+
<groupId>org.codehaus.janino</groupId>
220+
<artifactId>commons-compiler</artifactId>
221+
</exclusion>
222+
</exclusions>
213223
</dependency>
214224

215225
</dependencies>

sansa-inference-tests/src/test/scala/net/sansa_stack/test/conformance/TestCases.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object TestCases {
2121
* @return test cases
2222
*/
2323
def loadTestCases(directory: File, ids: Set[String] = Set.empty): Seq[TestCase] = {
24-
println("loading test cases ...")
24+
println(s"loading test cases from ${directory.getAbsolutePath}...")
2525

2626
val testCases = new ListBuffer[TestCase]()
2727

0 commit comments

Comments
 (0)