<?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: org.apache.spark.sql.AnalysisException: Table not found: in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/org-apache-spark-sql-AnalysisException-Table-not-found/m-p/168214#M130544</link>
    <description>&lt;P&gt;Dinesh,  I recreated your scenario (in spark-shell) and its working fine for me.  Are you running this in Zeppelin by chance?  I've noticed sometimes in Zeppelin, it doesnt create the hive context correctly, so what you can do to make sure you're doing it correctly is run the following code.&lt;/P&gt;&lt;PRE&gt;val sqlContext = New HiveContext(sc)

//your code here

&lt;/PRE&gt;&lt;P&gt;What will happen is we'll create a new HiveContext, and it should fix your problem.  I think we're losing the pointer to your sqlContext for some reason, so by recreating, we'll guarantee that the temptable is registered to a sqlContext, and the same sqlContext is going to be queried.  Let me know if that fixes your problem, or if you have more issues.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 08:39:08 GMT</pubDate>
    <dc:creator>jwiden</dc:creator>
    <dc:date>2017-02-10T08:39:08Z</dc:date>
  </channel>
</rss>

