<?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 running hive operations from script and storing script output to a text file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/running-hive-operations-from-script-and-storing-script/m-p/185631#M71109</link>
    <description>&lt;P&gt;I am trying to run a script which contains command hive -f hive.hql . This script asks user to provide input when it gets executed&lt;/P&gt;&lt;P&gt;flow of script :&lt;/P&gt;&lt;P&gt;sh myscript.sh &amp;gt; output.txt&lt;/P&gt;&lt;P&gt;then it asks user to provide input like service name, when user provide input like hive then some hive operations are executed like create , load and drop and all status like logging to hive and OK for creation of table , loading data into table and dropping table get displayed in console but this is not saved in text file. I want to save all this whatever displayed to text file but when hive logging initiates  but nothing goes to output.txt .&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 16:03:53 GMT</pubDate>
    <dc:creator>amol_08</dc:creator>
    <dc:date>2017-11-10T16:03:53Z</dc:date>
    <item>
      <title>running hive operations from script and storing script output to a text file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/running-hive-operations-from-script-and-storing-script/m-p/185631#M71109</link>
      <description>&lt;P&gt;I am trying to run a script which contains command hive -f hive.hql . This script asks user to provide input when it gets executed&lt;/P&gt;&lt;P&gt;flow of script :&lt;/P&gt;&lt;P&gt;sh myscript.sh &amp;gt; output.txt&lt;/P&gt;&lt;P&gt;then it asks user to provide input like service name, when user provide input like hive then some hive operations are executed like create , load and drop and all status like logging to hive and OK for creation of table , loading data into table and dropping table get displayed in console but this is not saved in text file. I want to save all this whatever displayed to text file but when hive logging initiates  but nothing goes to output.txt .&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:03:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/running-hive-operations-from-script-and-storing-script/m-p/185631#M71109</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2017-11-10T16:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: running hive operations from script and storing script output to a text file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/running-hive-operations-from-script-and-storing-script/m-p/185632#M71110</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Run your script as below&lt;/P&gt;&lt;PRE&gt;sh myscript.sh &amp;gt; output.txt 2&amp;gt;&amp;amp;1&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:21:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/running-hive-operations-from-script-and-storing-script/m-p/185632#M71110</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-11-10T16:21:32Z</dc:date>
    </item>
  </channel>
</rss>

