<?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 dump the output to a file from Beeline? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154950#M117389</link>
    <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/168/bleonhardi.html"&gt;Benjamin Leonhardi&lt;/A&gt;, Thanks for your answer. I got a clue from it that has made task to attain the output almost close to my expectation. If you go through my comments in @&lt;A href="https://community.hortonworks.com/users/214/agillan.html"&gt;Ana Gillan&lt;/A&gt; 's answer I have described my issue and if you can get an answer for it, I am done for the day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 12:31:55 GMT</pubDate>
    <dc:creator>Alexraj84</dc:creator>
    <dc:date>2016-04-05T12:31:55Z</dc:date>
    <item>
      <title>How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154946#M117385</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to dump the output of a beeline query (below) to a file but it prints all the logs along with the output in the file.&lt;/P&gt;&lt;PRE&gt;beeline -u jdbc:hive2://somehost_ip/ -f hive.hql &amp;gt;op.txt&lt;/PRE&gt;&lt;P&gt;Here is the output&lt;/P&gt;&lt;PRE&gt;0: jdbc:hive2://10.211.1.5:10000/&amp;gt; use db;
0: jdbc:hive2://10.211.1.5:10000/&amp;gt; select count(*) from sample_table;
+------+--+
| _c0  |
+------+--+
| 131  |
+------+--+
0: jdbc:hive2://10.211.1.5:10000/&amp;gt;
0: jdbc:hive2://10.211.1.5:10000/&amp;gt;
0: jdbc:hive2://10.211.1.5:10000/&amp;gt;&lt;/PRE&gt;&lt;P&gt;Can someone let me know how to get the output alone in a file as we get using Hive?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 18:54:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154946#M117385</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-04-04T18:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154947#M117386</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/25789/how-to-dump-the-output-from-beeline.html#"&gt;@Alex Raj&lt;/A&gt;, to clarify, do you just want the "131" output to a file? You can try this in your hql:&lt;/P&gt;&lt;PRE&gt;INSERT OVERWRITE DIRECTORY '/user/user1/results' select count(*) from sample_table;&lt;/PRE&gt;&lt;P&gt;This will write the output of your query into the results directory on HDFS.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 19:43:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154947#M117386</guid>
      <dc:creator>agillan</dc:creator>
      <dc:date>2016-04-04T19:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154948#M117387</link>
      <description>&lt;P&gt;You have different options.&lt;/P&gt;&lt;P&gt;1) You can control up to a point how the beeline output is made and then just save it to a file with linux. For example&lt;/P&gt;&lt;P&gt;beeline --outputformat=csv2 xxx &amp;gt; output.csv ( see the relevant parameters from the beeline help below )&lt;/P&gt;&lt;P&gt;2) For more control and better performance I wrote a little Java tool once. Its really only a couple lines of jdbc code.&lt;/P&gt;&lt;P&gt;3) and finally as Ana wrote. Yopu can just write a table into an external table in HDFS and specify the output format you want.&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;create external table test ROW FORMAT delimited fields terminated by '|' location "/tmp/myfolder" as select * from mytable;&lt;/P&gt;&lt;P&gt;you can then get that output in the local file system with&lt;/P&gt;&lt;P&gt;hadoop fs -getmerge /tmp/myfolder myoutput.csv&lt;/P&gt;&lt;PRE&gt; --showHeader=[true/false]       show column names in query results
   --headerInterval=ROWS;          the interval between which heades are displayed
   --fastConnect=[true/false]      skip building table/column list for tab-completion
   --autoCommit=[true/false]       enable/disable automatic transaction commit
   --verbose=[true/false]          show verbose error messages and debug info
   --showWarnings=[true/false]     display connection warnings
   --showNestedErrs=[true/false]   display nested errors
   --numberFormat=[pattern]        format numbers using DecimalFormat pattern
   --force=[true/false]            continue running script even after errors
   --maxWidth=MAXWIDTH             the maximum width of the terminal
   --maxColumnWidth=MAXCOLWIDTH    the maximum width to use when displaying columns
   --silent=[true/false]           be more silent
   --autosave=[true/false]         automatically save preferences
   --outputformat=[table/vertical/csv2/tsv2/dsv/csv/tsv]  format mode for result display
                                   Note that csv, and tsv are deprecated - use csv2, tsv2 inste&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Apr 2016 20:51:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154948#M117387</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-04-04T20:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154949#M117388</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/214/agillan.html" nodeid="214" target="_blank"&gt;@Ana Gillan&lt;/A&gt;, thank you for your answer. This method is perfect to dump the output into a file however the HQL I write has some echo statements which will be printed before the result and this is why I wanted to redirect the output in the SQL style. However after reading &lt;A rel="user" href="https://community.cloudera.com/users/168/bleonhardi.html" nodeid="168" target="_blank"&gt;@Benjamin Leonhardi&lt;/A&gt; 's answer I got a clue from it. Here is the modified query that will print a neat output without any logs included. Thanks to &lt;A href="https://community.hortonworks.com/questions/25789/how-to-dump-the-output-from-beeline.html#" rel="nofollow noopener noreferrer" target="_blank"&gt;@Benjamin Leonhardi&lt;/A&gt;.&lt;/P&gt;&lt;PRE&gt;beeline -u jdbc:hive2://somehost_ip/ --silent=true -f hive.hql &amp;gt;op.txt&lt;/PRE&gt;&lt;P&gt;But in the output file there are still couple of Blank lines printed. Here is the screen shot of the output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3202-samp.jpg" style="width: 300px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20972i7806786855D8625C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3202-samp.jpg" alt="3202-samp.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the output file there are two blank lines at the beginning and three trailing blank lines. &lt;STRONG&gt;If this can be fixed it would be great.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:30:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154949#M117388</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2019-08-18T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154950#M117389</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/168/bleonhardi.html"&gt;Benjamin Leonhardi&lt;/A&gt;, Thanks for your answer. I got a clue from it that has made task to attain the output almost close to my expectation. If you go through my comments in @&lt;A href="https://community.hortonworks.com/users/214/agillan.html"&gt;Ana Gillan&lt;/A&gt; 's answer I have described my issue and if you can get an answer for it, I am done for the day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 12:31:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154950#M117389</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-04-05T12:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154951#M117390</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;beeline -u jdbc:hive2://localhost:10000/default --silent=true --outputformat=csv2 -e "select * from sample_07 limit 10" &amp;gt; out.txt&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# cat out.txt &lt;/P&gt;&lt;P&gt;sample_07.code,sample_07.description,sample_07.total_emp,sample_07.salary&lt;/P&gt;&lt;P&gt;00-0000,All Occupations,134354250,40690&lt;/P&gt;&lt;P&gt;11-0000,Management occupations,6003930,96150&lt;/P&gt;&lt;P&gt;11-1011,Chief executives,299160,151370&lt;/P&gt;&lt;P&gt;11-1021,General and operations managers,1655410,103780&lt;/P&gt;&lt;P&gt;11-1031,Legislators,61110,33880&lt;/P&gt;&lt;P&gt;11-2011,Advertising and promotions managers,36300,91100&lt;/P&gt;&lt;P&gt;11-2021,Marketing managers,165240,113400&lt;/P&gt;&lt;P&gt;11-2022,Sales managers,322170,106790&lt;/P&gt;&lt;P&gt;11-2031,Public relations managers,47210,97170&lt;/P&gt;&lt;P&gt;11-3011,Administrative services managers,239360,76370&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:25:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154951#M117390</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-04-05T17:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154952#M117391</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/168/bleonhardi.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Benjamin Leonhardi&lt;/A&gt;, still the same problem.&lt;/P&gt;&lt;P&gt; Here is what I get.
&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3234-hort.png" style="width: 1053px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20970i647DEAFFA4053E9B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3234-hort.png" alt="3234-hort.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using CDH 5.3.6 with 0.13.1 beeline version.&lt;/P&gt;&lt;P&gt;Also I have another question if you don't mind answering, please. How to add a string in the output file while we execute the above command? Here is what I want to see in my output file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3235-hort.png" style="width: 194px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20971i345E95B265549687/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3235-hort.png" alt="3235-hort.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In Hive I can get this using '!echo' but the same does not work with beeline. I have tried '!sh echo' also but that does not seems to work. Much much appreciate your time.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:29:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154952#M117391</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2019-08-18T12:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154953#M117392</link>
      <description>&lt;P&gt;No idea about the empty lines sorry, I don't have these lines as you can see. Just delete them with sed? ( google delete empty lines linux )&lt;/P&gt;&lt;P&gt;To add a string on top of a file you could just use linux as well from the outside i.e. : &lt;/P&gt;&lt;P&gt;echo "The count is:" &amp;gt; out.txt&lt;/P&gt;&lt;P&gt;beeline .... &amp;gt;&amp;gt;out.txt&lt;/P&gt;&lt;P&gt;the double "&amp;gt;&amp;gt;" appends to a file&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 18:42:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154953#M117392</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-04-06T18:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154954#M117393</link>
      <description>&lt;P&gt;does 'INSERT OVERWRITE DIRECTORY' worked with beeline? i use it with hive , and it worked well, but when i switch to beeline, nothing output&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2016 13:51:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154954#M117393</guid>
      <dc:creator>Yan</dc:creator>
      <dc:date>2016-06-12T13:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154955#M117394</link>
      <description>&lt;P&gt;Hi Alex raj,&lt;/P&gt;&lt;P&gt;You are missing --outputformat=csv2 in the command , kindly mention it and the file format should be the csv. It will work. I have tried it. As, you have only one value so only one value will come in the csv file, try export more columns and rows then it will give you the better understanding. &lt;/P&gt;&lt;P&gt;beeline -u jdbc:hive2://somehost_ip/ --silent=true --outputformat=csv2 -f hive.hql &amp;gt;op.csv&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 14:40:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154955#M117394</guid>
      <dc:creator>ravimishrart201</dc:creator>
      <dc:date>2017-05-08T14:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154956#M117395</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/users/10152/chinasubin.html"&gt;苏 斌&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I have not tried INSERT OVERWRITE DIRECTORY when i switch to beeline. Try to use this command:- &lt;/P&gt;&lt;P&gt; beeline -u jdbc:hive2://somehost_ip/ --silent=true --outputformat=csv2 -f hive.hql &amp;gt;op.csv&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 14:42:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154956#M117395</guid>
      <dc:creator>ravimishrart201</dc:creator>
      <dc:date>2017-05-08T14:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154957#M117396</link>
      <description>&lt;P&gt;
	Hi Team, &lt;/P&gt;&lt;P&gt;
	I am trying to print output along with number records selected or number record affected messages in the output file but I am unable to print it. &lt;/P&gt;&lt;P&gt;
	I have tried with --verbose=true also but it is not helping. &lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;&lt;/P&gt;&lt;P&gt;
	beeline -u "jdbc:hive2://abc.nsroot.net:10000/;principal=hive/abc.nsroot.net@ABC.NSROOT.NET;ssl=true " -f /home/test1.hql &amp;gt; testresult1.txt&lt;/P&gt;&lt;P&gt;&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;hql files has only one query "select * from mytable;" &lt;/P&gt;&lt;P&gt;can any one suggest me on this? &lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Kamleshkumar Gujarathi&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 08:51:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154957#M117396</guid>
      <dc:creator>Big</dc:creator>
      <dc:date>2018-10-20T08:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154958#M117397</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/168/bleonhardi.html" nodeid="168"&gt;@Benjamin Leonhardi&lt;/A&gt; I am facing a problem while fetching ouput in csv2 format. Since my data itself contains comma hence that specific column is encapsulated in special character "^@". Can you please help of how to avoid it or if I can get the output in a pipe delimited form?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 18:55:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/154958#M117397</guid>
      <dc:creator>neha1689</dc:creator>
      <dc:date>2019-04-13T18:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/281053#M209130</link>
      <description>&lt;P&gt;Also, just wanted to point out that, depending on the version of Hive being used, may default to buffering within the beeline client.&amp;nbsp; Be sure to enable 'incremental' fetches of data from the Hive server when dealing with large result sets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--incremental=&lt;/STRONG&gt;&lt;SPAN&gt;[true/false]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Defaults to&amp;nbsp;true&amp;nbsp;from Hive 2.3 onwards, before it defaulted to&amp;nbsp;false.&amp;nbsp;When set to&amp;nbsp;false, the entire result set is fetched and buffered before being displayed, yielding optimal display column sizing. When set to&amp;nbsp;true, result rows are displayed immediately as they are fetched, yielding lower latency and memory usage at the price of extra display column padding. Setting&amp;nbsp;--incremental=true&amp;nbsp;is recommended if you encounter an OutOfMemoryException.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients" target="_blank" rel="noopener"&gt;https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 20:21:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/281053#M209130</guid>
      <dc:creator>David M.</dc:creator>
      <dc:date>2019-10-22T20:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/281057#M209132</link>
      <description>&lt;P&gt;Another option for large data sets, if ordering doesn't matter, is to create an EXTERNAL table with the necessary delimiters and issue an INSERT statement into the table instead of a SELECT statement in beeline.&amp;nbsp; To copy the data locally, issue a:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hdfs dfs -cat /my/table/*&lt;/LI-CODE&gt;&lt;P&gt;"Order doesn't matter' because the cat application will not necessarily read the files in proper order.&amp;nbsp; If an ORDER BY is included in the query, the contents of each file will be in order, but the files may be read out of order by the 'cat' application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/r2.8.0/hadoop-project-dist/hadoop-common/FileSystemShell.html#cat" target="_blank"&gt;https://hadoop.apache.org/docs/r2.8.0/hadoop-project-dist/hadoop-common/FileSystemShell.html#cat&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 20:42:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/281057#M209132</guid>
      <dc:creator>David M.</dc:creator>
      <dc:date>2019-10-22T20:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/294955#M217523</link>
      <description>&lt;P&gt;Please try this, this will only output the stadard output of the not error or logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;beeline -u jdbc:hive2://somehost_ip/ -f hive.hql 2&amp;gt; /dev/null &amp;gt;op.txt&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:22:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/294955#M217523</guid>
      <dc:creator>Ravi_bunn</dc:creator>
      <dc:date>2020-04-28T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to dump the output to a file from Beeline?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/294956#M217524</link>
      <description>&lt;P&gt;Please check below command, here 2&amp;gt; /dev/null will consume all the logs and error. It will now allow standard output to be shown:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;beeline -u jdbc:hive2://somehost_ip/ -f 2&amp;gt; /dev/null hive.hql &amp;gt;op.txt&lt;/PRE&gt;&lt;P&gt;if you like this please give me kudos. Thanks!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:28:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-dump-the-output-to-a-file-from-Beeline/m-p/294956#M217524</guid>
      <dc:creator>Ravi_bunn</dc:creator>
      <dc:date>2020-04-28T14:28:21Z</dc:date>
    </item>
  </channel>
</rss>

