title: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
body: <p>I'm submitting remote spark jobs to the Hadoop cluster. But getting below error message help me to solve this. </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
      at org.apache.spark.Logging$.&lt;init&gt;(Logging.scala:162)
      at org.apache.spark.Logging$.&lt;clinit&gt;(Logging.scala)
      at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:103)
      at org.apache.spark.Logging$class.log(Logging.scala:50)
      at org.apache.spark.deploy.yarn.ApplicationMaster$.log(ApplicationMaster.scala:635)
      at org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:649)
      at org.apache.spark.deploy.yarn.ExecutorLauncher$.main(ApplicationMaster.scala:674)
      at org.apache.spark.deploy.yarn.ExecutorLauncher.main(ApplicationMaster.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$AppClassLoader.loadClass(Launcher.java:331)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 8 more
  </code></pre>