Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Could not find or load main class org.test.spark.streamExample

I was trying to execute sample basic sparkstreaming example in Scala IDE, but I am getting below error:

Error: Could not find or load main class org.test.spark.streamExample.

Could anyone help me to sort out this please.

like image 686
kumar Avatar asked Dec 22 '15 06:12

kumar


1 Answers

This Error May occur for two reasons:

1. When you did not write the main method in the scala program

def main(args: Array[String]): Unit = {
    println("TEst")
  }


2. When you add unsupported jar to the build path of the scala project

Please check the above two scenarios.

like image 78
rajkumar chilukuri Avatar answered Oct 25 '22 02:10

rajkumar chilukuri