<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Spark 2.1 didn't work in CDH 5.12 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58155#M65645</link>
    <description>&lt;P&gt;I have installed and activated spark 2.1 from CDH 5.12 parcel. But its not working or configured properly. Executing command 'spark2-shell' gives below exception:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$&amp;nbsp;spark2-shell&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmitArguments$$anonfun$mergeDefaultSparkProperties$1.apply(SparkSubmitArguments.scala:118)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmitArguments$$anonfun$mergeDefaultSparkProperties$1.apply(SparkSubmitArguments.scala:118)&lt;BR /&gt;at scala.Option.getOrElse(Option.scala:121)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmitArguments.mergeDefaultSparkProperties(SparkSubmitArguments.scala:118)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmitArguments.&amp;lt;init&amp;gt;(SparkSubmitArguments.scala:104)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:119)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FSDataInputStream&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:366)&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:355)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:354)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:425)&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems looking for some Hadoop class file, but its not available. I have hadoop version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ hadoop version&lt;BR /&gt;Hadoop 2.6.0-cdh5.12.0&lt;BR /&gt;Subversion &lt;A href="http://github.com/cloudera/hadoop" target="_blank"&gt;http://github.com/cloudera/hadoop&lt;/A&gt; -r dba647c5a8bc5e09b572d76a8d29481c78d1a0dd&lt;BR /&gt;Compiled by jenkins on 2017-06-29T11:31Z&lt;BR /&gt;Compiled with protoc 2.5.0&lt;BR /&gt;From source with checksum 7c45ae7a4592ce5af86bc4598c5b4&lt;BR /&gt;This command was run using /opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29/jars/hadoop-common-2.6.0-cdh5.12.0.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to configure anything explicitly ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there are no files in ' /etc/spark2/conf' , which looks to me that spark2 is not configured properly.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:59:42 GMT</pubDate>
    <dc:creator>vikash145</dc:creator>
    <dc:date>2022-09-16T11:59:42Z</dc:date>
    <item>
      <title>Spark 2.1 didn't work in CDH 5.12</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58155#M65645</link>
      <description>&lt;P&gt;I have installed and activated spark 2.1 from CDH 5.12 parcel. But its not working or configured properly. Executing command 'spark2-shell' gives below exception:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$&amp;nbsp;spark2-shell&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmitArguments$$anonfun$mergeDefaultSparkProperties$1.apply(SparkSubmitArguments.scala:118)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmitArguments$$anonfun$mergeDefaultSparkProperties$1.apply(SparkSubmitArguments.scala:118)&lt;BR /&gt;at scala.Option.getOrElse(Option.scala:121)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmitArguments.mergeDefaultSparkProperties(SparkSubmitArguments.scala:118)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmitArguments.&amp;lt;init&amp;gt;(SparkSubmitArguments.scala:104)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:119)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FSDataInputStream&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:366)&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:355)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:354)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:425)&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems looking for some Hadoop class file, but its not available. I have hadoop version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ hadoop version&lt;BR /&gt;Hadoop 2.6.0-cdh5.12.0&lt;BR /&gt;Subversion &lt;A href="http://github.com/cloudera/hadoop" target="_blank"&gt;http://github.com/cloudera/hadoop&lt;/A&gt; -r dba647c5a8bc5e09b572d76a8d29481c78d1a0dd&lt;BR /&gt;Compiled by jenkins on 2017-06-29T11:31Z&lt;BR /&gt;Compiled with protoc 2.5.0&lt;BR /&gt;From source with checksum 7c45ae7a4592ce5af86bc4598c5b4&lt;BR /&gt;This command was run using /opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29/jars/hadoop-common-2.6.0-cdh5.12.0.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to configure anything explicitly ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there are no files in ' /etc/spark2/conf' , which looks to me that spark2 is not configured properly.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:59:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58155#M65645</guid>
      <dc:creator>vikash145</dc:creator>
      <dc:date>2022-09-16T11:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2.1 didn't work in CDH 5.12</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58159#M65646</link>
      <description>The other time I have seen this the issue was that Spark2 had not been added as a service to the cluster and therefor the Spark2 gateway was not in place. This would include environmental and configuration settings for clients like spark2-shell.&lt;BR /&gt;&lt;BR /&gt;At a cluster screen click the Action menu and select 'Add a Service'. Follow the wizard and add Spark2 from the list of services available.</description>
      <pubDate>Fri, 28 Jul 2017 05:49:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58159#M65646</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-07-28T05:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2.1 didn't work in CDH 5.12</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58164#M65647</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18127"&gt;@mbigelow&lt;/a&gt;&amp;nbsp; I have tried to add but there is no option in clouder-manager UI to add anything called 'Spark2' . It has 'Spark' and 'Spark(Standalone)' only. PFA screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CDH5.12-Spark2.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/3261iC70EF7E20733A8B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="CDH5.12-Spark2.png" alt="CDH5.12-Spark2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 06:52:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58164#M65647</guid>
      <dc:creator>vikash145</dc:creator>
      <dc:date>2017-07-28T06:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2.1 didn't work in CDH 5.12</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58179#M65648</link>
      <description>Ok, this means that the CSD file isn't in place and/or Cloudera Manager server was not restarted after it was put in place. Please check both. After the CM server restart the service should be available to add to an existing or new cluster.</description>
      <pubDate>Fri, 28 Jul 2017 14:59:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58179#M65648</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-07-28T14:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2.1 didn't work in CDH 5.12</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58187#M65649</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18127"&gt;@mbigelow&lt;/a&gt; Thank you, that solved the issue.&lt;BR /&gt;&lt;BR /&gt;The /opt/cloudera/csd dir was empty, I downloaded CSD and configured it and then re-added service. The above exception is resolved.</description>
      <pubDate>Fri, 28 Jul 2017 16:58:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-1-didn-t-work-in-CDH-5-12/m-p/58187#M65649</guid>
      <dc:creator>vikash145</dc:creator>
      <dc:date>2017-07-28T16:58:06Z</dc:date>
    </item>
  </channel>
</rss>

