Я тестирую приложение spark с maven, в то время как при использовании отказоустойчивого плагина приложение spark не работает с ошибкой ниже -
[ERROR] testAddingAndRemovingToppings(com.acme.pizza.PizzaTests) Time elapsed: 6.934 s <<< ERROR!
java.lang.IllegalAccessError: tried to access method org.apache.spark.util.EventLoop.eventThread()Ljava/lang/Thread; from class org.apache.spark.sql.internal.SQLConf$$anonfun$14
at com.acme.pizza.PizzaTests.testAddingAndRemovingToppings(PizzaTests.scala:43)
Ниже приведена конфигурация pom.xml -
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<!--<classpathDependencyScopeExclude>runtime</classpathDependencyScopeExclude>-->
<parallel>none</parallel>
<threadCount>1</threadCount>
<!--<classpathDependencyScopeExclude>compile</classpathDependencyScopeExclude>-->
<additionalClasspathElements>
<additionalClasspathElement>----databricks-connect libraries-----</additionalClasspathElement>
</additionalClasspathElements>
<!--<groups>com.acme.pizza.Integration</groups>-->
<skipTests>${skip.integration.tests}</skipTests>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.0.0-M3</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<includes>
<include>**/*Tests.class</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
Любая помощь очень ценится.