I'm trying the following:
My build.sbt is:
name := Instacart
version := 1.0
scalaVersion :=2.11.8
libraryDependencies ++= Seq(
org.apache.spark %% spark-core % 2.0.0,
org.apache.spark %% spark-sql % 2.0.0)
The sbt package was sucessful
When i am giving spark-submit I got an error:
spark-submit --class Insta --master yarn /mnt/home/edureka_421970/Instacart_sparksql/target/scala-2.11/instacart_2.11-1.0.jar
Exception in thread main java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
at org.apache.spark.deploy.SparkSubmitArguments.handleUnknown(SparkSubmitArguments.scala:457)
at org.apache.spark.launcher.SparkSubmitOptionParser.parse(SparkSubmitOptionParser.java:178)
at org.apache.spark.deploy.SparkSubmitArguments.(SparkSubmitArguments.scala:103)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:114)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FSDataInputStream
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 5 more