<?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: Getting errors on submitting a spark job in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-errors-on-submitting-a-spark-job/m-p/215558#M84080</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/45387/sahiljankaw.html" nodeid="45387"&gt;@Sahil Kaw&lt;/A&gt;&lt;P&gt;"/usr/hdp/current/oozie-client" should be a symlink of "/usr/hdp/&amp;lt;version&amp;gt;/oozie". Move/remove "/usr/hdp/current/oozie-client" directory out of "/usr/hdp" and refresh the oozie client from ambari and you should be good. &lt;/P&gt;</description>
    <pubDate>Sat, 06 Oct 2018 15:59:34 GMT</pubDate>
    <dc:creator>sandyy006</dc:creator>
    <dc:date>2018-10-06T15:59:34Z</dc:date>
    <item>
      <title>Getting errors on submitting a spark job</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-errors-on-submitting-a-spark-job/m-p/215557#M84079</link>
      <description>&lt;P&gt;[spark@vm1 spark2-client]$ ./bin/spark-submit --class org.apache.spark.examples.SparkPi     --master yarn-client     --num-executors 1     --driver-memory 512m     --executor-memory 512m     --executor-cores 1     examples/jars/spark-examples_2.11-2.3.1.3.0.1.0-187.jar 10&lt;/P&gt;&lt;PRE&gt;Logs

Traceback (most recent call last):
  File "/usr/bin/hdp-select", line 448, in &amp;lt;module&amp;gt;
    listPackages(getPackages("all"))
  File "/usr/bin/hdp-select", line 266, in listPackages
    os.path.basename(os.path.dirname(os.readlink(linkname))))
&lt;BR /&gt;OSError: [Errno 22] Invalid argument: '/usr/hdp/current/oozie-client'
&lt;BR /&gt;ls: cannot access /usr/hdp//hadoop/lib: No such file or directory&lt;BR /&gt;
Exception in thread "main" java.lang.IllegalStateException: hdp.version is not set while running Spark under HDP, please set through HDP_VERSION in spark-env.sh or add a java-opts file in conf with -Dhdp.version=xxx
at org.apache.spark.launcher.Main.main(Main.java:118)


&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Oct 2018 08:32:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-errors-on-submitting-a-spark-job/m-p/215557#M84079</guid>
      <dc:creator>sahiljankaw</dc:creator>
      <dc:date>2018-10-06T08:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting errors on submitting a spark job</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-errors-on-submitting-a-spark-job/m-p/215558#M84080</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/45387/sahiljankaw.html" nodeid="45387"&gt;@Sahil Kaw&lt;/A&gt;&lt;P&gt;"/usr/hdp/current/oozie-client" should be a symlink of "/usr/hdp/&amp;lt;version&amp;gt;/oozie". Move/remove "/usr/hdp/current/oozie-client" directory out of "/usr/hdp" and refresh the oozie client from ambari and you should be good. &lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 15:59:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-errors-on-submitting-a-spark-job/m-p/215558#M84080</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-10-06T15:59:34Z</dc:date>
    </item>
  </channel>
</rss>

