Open coperator opened 3 years ago
Can you show your other dependencies? Looks like you have a scala 2.12 somewhere in your classpath. You can try using a s3mock_2.12
version and see if it helps.
I also get the error after upgrading my springboot application from OpenJKD8 to OpenJDK11 and Springboot 2.2.4.RELEASE to 2.4.5. As these were must upgrades i have to do so even going to lower version s3mock_2.12
still causes Scala Error. Have no know how of Scala so writing here.
I am receiving the same issue. please provide some solution.
with below dependencies I am getting same error while running simple hello world program from read me file
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.12</artifactId>
<version>3.3.1</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.13</artifactId>
<version>3.3.1</version>
</dependency>
String logFile = "/java/spark/spark/README.md"; // Should be some file on your system
SparkSession spark = SparkSession.builder().appName("Simple Application").config("spark.master", "local").getOrCreate();
Dataset<String> logData = spark.read().textFile(logFile).cache();
long numAs = logData.filter((FilterFunction<String>) s -> s.contains("a")).count();
long numBs = logData.filter((FilterFunction<String>) s -> s.contains("b")).count();
System.out.println("Lines with a: " + numAs + ", lines with b: " + numBs);
spark.stop();
I get this error
java.lang.ClassNotFoundException: scala.$less$colon$less
atS3Mock api = new S3Mock.Builder().withPort(8001).withInMemoryBackend().build();
My pom.xml:
What could be the reason?