<?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 Re: Unable to launch spark using spark-shell on linux in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-launch-spark-using-spark-shell-on-linux/m-p/77072#M80850</link>
    <description>According to the error, it is looking for java 7 installed by cloudera. You should define JAVA_HOME={path_to_your_jdk8_installation} in bashrc.</description>
    <pubDate>Wed, 18 Jul 2018 08:29:55 GMT</pubDate>
    <dc:creator>GeKas</dc:creator>
    <dc:date>2018-07-18T08:29:55Z</dc:date>
    <item>
      <title>Unable to launch spark using spark-shell on linux</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-launch-spark-using-spark-shell-on-linux/m-p/77064#M80849</link>
      <description>&lt;P&gt;I am trying to set up SPARK2 on my cloudera cluster. For that, I have JDK1.8:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/5850e559ac988cce45a48d3ee38fa09c5d226d91/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f61497438322e706e67" border="0" alt="" width="541" height="97" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have installed scala 2.11.8 using the rpm file:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/9eaf97b5b659f7f794aef38090920ccbd47cf8f5/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f52305939392e706e67" border="0" alt="" width="542" height="65" /&gt;&lt;/P&gt;
&lt;P&gt;I have downloaded, extracted the spark version 2.2.0 on my home directory: /home/cloudera.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/123d1d5f4da3e513db97ba9d770d75f2da24e6df/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f6f69304e302e706e67" border="0" alt="" width="1349" height="340" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made changes to the PATH variable in .bashrc as below:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/9909c5cf06741c868ba86adf65414110a74fdde4/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f435373336d2e706e67" border="0" alt="" width="398" height="295" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I try to execute spark-shell from the home directory: /home/cloudera, it says no such file or directory which can be seen below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[cloudera@quickstart ~]$ spark-shell
/home/cloudera/spark/bin/spark-class: line 71: /usr/java/jdk1.7.0_67-cloudera/bin/java: No such file or directory
[cloudera@quickstart ~]$&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone let me know how can I fix the problem and configure it properly ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:28:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-launch-spark-using-spark-shell-on-linux/m-p/77064#M80849</guid>
      <dc:creator>Sidhartha</dc:creator>
      <dc:date>2022-09-16T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to launch spark using spark-shell on linux</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-launch-spark-using-spark-shell-on-linux/m-p/77072#M80850</link>
      <description>According to the error, it is looking for java 7 installed by cloudera. You should define JAVA_HOME={path_to_your_jdk8_installation} in bashrc.</description>
      <pubDate>Wed, 18 Jul 2018 08:29:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-launch-spark-using-spark-shell-on-linux/m-p/77072#M80850</guid>
      <dc:creator>GeKas</dc:creator>
      <dc:date>2018-07-18T08:29:55Z</dc:date>
    </item>
  </channel>
</rss>

