Closed guzelcihad closed 3 years ago
Specifying main class like this --class Aggregate
solved my problem.
hey @guzelcihad I have run into the same error and despite specifying main class as you have suggested, it didn't work
I am having same issue, I tried that as well it did not work.
My command is spark-submit --master yarn --num-executors 1 --executor-cores 1 --conf "spark.driver.extraJavaOptions=-Diop.version=4.1.0.0" --class com.package.MainClass Myjar.jar devmanaged dhs-userreview snapshot UPDATE_VERSION_VARIABLE 1.0-17 ""
hey @guzelcihad I have run into the same error and despite specifying main class as you have suggested, it didn't work
@TitoLulu It's been a long time since I wrote this code. I can't help you right now :(
I am getting an error and didnt find a solution. I use Intellij, sbt 1.4.7, scala 2.12.10 and spark 3.0.
I couldn't submit any job locally. An example class I've work on:
I use the command :
$SPARK_HOME/bin/spark-submit --class main.scala.Aggregate /home/ubuntu/IdeaProjects/Deneme/target/Deneme-1.0-SNAPSHOT.jar
Neither I create project with sbt and maven. But I get sample error in both case.
My build.sbt file:
The Error 21/02/05 15:48:47 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Error: Failed to load class main.scala.Aggregate. log4j:WARN No appenders could be found for logger (org.apache.spark.util.ShutdownHookManager). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Can anyone help me?