<?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 How to load Hive data in to Spark-shell in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-load-Hive-data-in-to-Spark-shell/m-p/56744#M21446</link>
    <description>&lt;P&gt;I have downloaded Cloudera quickstart 5.10 for VirtualBox.&lt;/P&gt;&lt;P&gt;But it's not loading hive data into spark&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import org.apache.spark.sql.hive.HiveContext&lt;BR /&gt;import sqlContext.implicits._&lt;BR /&gt;val hiveObj = new HiveContext(sc)&lt;/P&gt;&lt;P&gt;hiveObj.refreshTable("db.table") // if you have uograded your hive do this, to refresh the tables.&lt;BR /&gt;&lt;BR /&gt;val sample = sqlContext.sql("select * from table").collect()&lt;BR /&gt;sample.foreach(println)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still i'm getting the error as table not found(It's not accessing metadata)&lt;/P&gt;&lt;P&gt;What should i do, Any one pls help me&lt;/P&gt;&lt;P&gt;(In cloudera quickstart we are unable to copy hive-site.xml in to spark/conf)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:52:00 GMT</pubDate>
    <dc:creator>hadoopSparkZen</dc:creator>
    <dc:date>2022-09-16T11:52:00Z</dc:date>
  </channel>
</rss>

