<?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: How to run HQL file in Spark in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155811#M44799</link>
    <description>&lt;P&gt;I'm using scala..couldn't find equivalent "open" API in scala.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2016 01:29:38 GMT</pubDate>
    <dc:creator>bigdataam09</dc:creator>
    <dc:date>2016-11-01T01:29:38Z</dc:date>
    <item>
      <title>How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155805#M44793</link>
      <description>&lt;P&gt;I want to read a hql file in spark job. This hql creates a table by joining 3-4 other tables. &lt;/P&gt;&lt;P&gt;I don't want to write the sql statement in the spark job instead I want to pass HQL file as an argument to spark job and then run the hql file.&lt;/P&gt;&lt;P&gt;Is it possible in Spark ?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2016 03:20:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155805#M44793</guid>
      <dc:creator>bigdataam09</dc:creator>
      <dc:date>2016-10-29T03:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155806#M44794</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10404/bigdataam09.html" nodeid="10404"&gt;@Amit Kumar Agarwal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See the link below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoopist.wordpress.com/2016/03/12/how-to-execute-hive-sql-file-in-spark-engine/" target="_blank"&gt;https://hadoopist.wordpress.com/2016/03/12/how-to-execute-hive-sql-file-in-spark-engine/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2016 04:11:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155806#M44794</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2016-10-29T04:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155807#M44795</link>
      <description>&lt;P&gt;This link explains how to execute hive sql using spark-sql shell. But I want to the call the file programatically not through shell.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 21:04:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155807#M44795</guid>
      <dc:creator>bigdataam09</dc:creator>
      <dc:date>2016-10-31T21:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155808#M44796</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10404/bigdataam09.html" nodeid="10404"&gt;@Amit Kumar Agarwal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If you are looking to do it from a program then try something like the below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/31313361/sparksql-hql-script-in-file-to-be-loaded-on-python-code" target="_blank"&gt;http://stackoverflow.com/questions/31313361/sparksql-hql-script-in-file-to-be-loaded-on-python-code&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 21:38:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155808#M44796</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2016-10-31T21:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155809#M44797</link>
      <description>&lt;P&gt;I went through this Stackoverflow link, but I don't see any 'open' API in spark...getting compiler error...&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 21:47:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155809#M44797</guid>
      <dc:creator>bigdataam09</dc:creator>
      <dc:date>2016-10-31T21:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155810#M44798</link>
      <description>&lt;P&gt;"open" is not a spark api command, it is a python command.  What language are you using?  Replace &lt;EM&gt;open("file.hql").read() &lt;/EM&gt;with the equivalent command/code-block in that language.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 22:18:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155810#M44798</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2016-10-31T22:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155811#M44799</link>
      <description>&lt;P&gt;I'm using scala..couldn't find equivalent "open" API in scala.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 01:29:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155811#M44799</guid>
      <dc:creator>bigdataam09</dc:creator>
      <dc:date>2016-11-01T01:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155812#M44800</link>
      <description>&lt;P&gt;We can use below Scala API to read file:&lt;/P&gt;&lt;P&gt;sqlContext.sql(scala.io.Source.fromFile("/vzhome/agaram8/HQLScripts/count.hql").getLines&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 01:44:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155812#M44800</guid>
      <dc:creator>bigdataam09</dc:creator>
      <dc:date>2016-11-01T01:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to run HQL file in Spark</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155813#M44801</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Amit Kumar Agarwal&lt;/P&gt;&lt;P&gt; I am looking to run Hive HQL from SPARK SQL.. could you please provide the guidance for same.
&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepesh&lt;/P&gt;&lt;P&gt;deepeshnema@gmail.com&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 18:24:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-HQL-file-in-Spark/m-p/155813#M44801</guid>
      <dc:creator>deepeshnema</dc:creator>
      <dc:date>2017-10-24T18:24:26Z</dc:date>
    </item>
  </channel>
</rss>

