<?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: Spark error: org.apache.spark.SparkException: Failed to get broadcast_2_piece0 of broadcast_2 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Spark-error-org-apache-spark-SparkException-Failed-to-get/m-p/230884#M192731</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18482/hugofelix.html" nodeid="18482"&gt;@Hugo Felix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for sharing the tutorial. I was able to replicate the issue and I found the issue to be with incompatible jars.&lt;/P&gt;&lt;P&gt;I am using the following precise versions that I pass to spark-shell.&lt;/P&gt;&lt;P&gt;&lt;A href="https://mvnrepository.com/artifact/org.apache.spark/spark-streaming-twitter_2.10/1.6.1.2.4.2.10-1"&gt;spark-streaming-twitter_2.10-1.6.1.2.4.2.10-1.jar &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mvnrepository.com/artifact/org.twitter4j/twitter4j-core/4.0.4"&gt;twitter4j-core-4.0.4.jar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mvnrepository.com/artifact/org.twitter4j/twitter4j-stream/4.0.4"&gt;twitter4j-stream-4.0.4.jar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For test purpose, I had put them all under /tmp and here is how I initiated the spark shell:&lt;/P&gt;&lt;PRE&gt;Syntax:

spark-shell --jars "/path/jar1,/path/jar2,/path/jar3"

Example:

spark-shell --jars "/tmp/spark-streaming-twitter_2.10-1.6.1.2.4.2.10-1.jar,/tmp/twitter4j-core-4.0.4.jar,/tmp/twitter4j-stream-4.0.4.jar"&lt;/PRE&gt;&lt;P&gt;Once I got the scala prompt in spark-shell, I typed out the code from the tutorial without specifying any value for "spark.cleaner.ttl".&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2017 03:24:43 GMT</pubDate>
    <dc:creator>dineshc</dc:creator>
    <dc:date>2017-07-06T03:24:43Z</dc:date>
  </channel>
</rss>

