<?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: not able to run hive query by putting it into .sql file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106927#M69803</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3719/tajinderdhanjal93.html" nodeid="3719"&gt;@Tajinderpal Singh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please share the steps you performed along with error message.&lt;/P&gt;</description>
    <pubDate>Sun, 29 May 2016 00:54:31 GMT</pubDate>
    <dc:creator>jyadav</dc:creator>
    <dc:date>2016-05-29T00:54:31Z</dc:date>
    <item>
      <title>not able to run hive query by putting it into .sql file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106926#M69802</link>
      <description>&lt;P&gt;I am able to run hive query through its shell but not able to run it by putting it into file. It gives me permission denied.&lt;/P&gt;&lt;P&gt;I tried to run it through hdfs user but still getting same error.&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 00:53:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106926#M69802</guid>
      <dc:creator>tajinderdhanjal</dc:creator>
      <dc:date>2016-05-29T00:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hive query by putting it into .sql file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106927#M69803</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3719/tajinderdhanjal93.html" nodeid="3719"&gt;@Tajinderpal Singh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please share the steps you performed along with error message.&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 00:54:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106927#M69803</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-29T00:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hive query by putting it into .sql file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106928#M69804</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3719/tajinderdhanjal93.html" nodeid="3719"&gt;@Tajinderpal Singh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Below are the valid examples for running hive queries&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Example of running a query from the command line&lt;PRE&gt;$HIVE_HOME/bin/hive -e 'select a.col from tab1 a'&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;Example of setting Hive configuration variables&lt;PRE&gt;$HIVE_HOME/bin/hive -e 'select a.col from tab1 a' --hiveconf hive.exec.scratchdir=/home/my/hive_scratch  --hiveconf mapred.reduce.tasks=32&lt;/PRE&gt;
&lt;/LI&gt;&lt;LI&gt;Example of dumping data out from a query into a file using silent mode&lt;PRE&gt;$HIVE_HOME/bin/hive -S -e 'select a.col from tab1 a' &amp;gt; a.txt&lt;/PRE&gt;
&lt;/LI&gt;&lt;LI&gt;Example of running a script non-interactively from local disk&lt;PRE&gt;$HIVE_HOME/bin/hive -f /home/my/hive-script.sql&lt;/PRE&gt;
&lt;/LI&gt;&lt;LI&gt;Example of running a script non-interactively from a Hadoop supported filesystem (starting in &lt;A href="https://issues.apache.org/jira/browse/HIVE-7136"&gt;Hive 0.14&lt;/A&gt;)&lt;PRE&gt;$HIVE_HOME/bin/hive -f hdfs://&amp;lt;namenode&amp;gt;:&amp;lt;port&amp;gt;/hive-script.sql
$HIVE_HOME/bin/hive -f s3://mys3bucket/s3-script.sql &lt;/PRE&gt;
&lt;/LI&gt;&lt;LI&gt;Example of running an initialization script before entering interactive mode&lt;PRE&gt;$HIVE_HOME/bin/hive -i /home/my/hive-init.sql&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 29 May 2016 04:20:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106928#M69804</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-05-29T04:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hive query by putting it into .sql file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106929#M69805</link>
      <description>&lt;P&gt;Thanks kuldeep i am able to run hive queries by putting in file now.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 15:55:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hive-query-by-putting-it-into-sql-file/m-p/106929#M69805</guid>
      <dc:creator>tajinderdhanjal</dc:creator>
      <dc:date>2016-05-30T15:55:51Z</dc:date>
    </item>
  </channel>
</rss>

