<?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: Beeline select query in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158215#M20921</link>
    <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/2867/poojachawda10.html" nodeid="2867"&gt;@Pooja Chawda&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Hope are doing well! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you try below thing?&lt;/P&gt;&lt;PRE&gt;$beeline -u jdbc:hive2://&amp;lt;server-ip&amp;gt;:10000/databaseName  -n &amp;lt;your-id&amp;gt; -p &amp;lt;your-password&amp;gt; --outputformat=csv -f input_query.sql &amp;gt; results.out&lt;/PRE&gt;&lt;P&gt;Or you can use below parameters:&lt;/P&gt;&lt;PRE&gt;--outputformat=csv

--headerInterval=400

--showHeader=false

--maxColumnWidth=20&lt;/PRE&gt;&lt;P&gt;Hope this helps! &lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 17:55:13 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2016-02-25T17:55:13Z</dc:date>
    <item>
      <title>Beeline select query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158214#M20920</link>
      <description>&lt;P&gt;I am trying to switch to Beeline from hive, but I have one issue.&lt;/P&gt;&lt;P&gt;
&lt;STRONG&gt;Hive : &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;
Query : select * from table; &lt;/P&gt;&lt;P&gt;Output : The output is in readable format i.e we can scroll down to see complete data on my screen(terminal).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
&lt;STRONG&gt;Beeline : &lt;/STRONG&gt;
Query : select * from table; &lt;/P&gt;&lt;P&gt;Output : The output is not in readable format i.e we cannot scroll down to see complete data. All columns are mixed up. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Work Around : &lt;/STRONG&gt;
I tried setting &lt;STRONG&gt;--maxWidth=100 &lt;/STRONG&gt;it worked for one table with 10 columns. But still the output is not properly readable. I have to change the value of maxWidth for different tables as different tables have different number of columns.&lt;/P&gt;&lt;P&gt;
So, is there any way to set some default value so that the data becomes understandable using beeline?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 17:52:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158214#M20920</guid>
      <dc:creator>poojachawda_10</dc:creator>
      <dc:date>2016-02-25T17:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline select query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158215#M20921</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/2867/poojachawda10.html" nodeid="2867"&gt;@Pooja Chawda&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Hope are doing well! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you try below thing?&lt;/P&gt;&lt;PRE&gt;$beeline -u jdbc:hive2://&amp;lt;server-ip&amp;gt;:10000/databaseName  -n &amp;lt;your-id&amp;gt; -p &amp;lt;your-password&amp;gt; --outputformat=csv -f input_query.sql &amp;gt; results.out&lt;/PRE&gt;&lt;P&gt;Or you can use below parameters:&lt;/P&gt;&lt;PRE&gt;--outputformat=csv

--headerInterval=400

--showHeader=false

--maxColumnWidth=20&lt;/PRE&gt;&lt;P&gt;Hope this helps! &lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 17:55:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158215#M20921</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-02-25T17:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline select query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158216#M20922</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; thanks it worked for me.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 18:16:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158216#M20922</guid>
      <dc:creator>poojachawda_10</dc:creator>
      <dc:date>2016-02-25T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline select query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158217#M20923</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/2867/poojachawda10.html" nodeid="2867"&gt;@Pooja Chawda&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 18:16:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158217#M20923</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-02-25T18:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Beeline select query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158218#M20924</link>
      <description>&lt;P&gt;Due to &lt;A href="https://issues.apache.org/jira/browse/HIVE-8615"&gt;HIVE_8615&lt;/A&gt;, it is advised to start using csv2/tsv2 for Beeline output formatting as csv/tsv are deprecated as of Hive 0.14.&lt;/P&gt;&lt;P&gt;More details can be on the &lt;A href="https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients"&gt;Apache Hiveserver2 Client wiki&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;"Separated-Value Output Formats
Starting with Hive 0.14, there are improved SV output formats available, namely DSV, CSV2 and TSV2.  These conform better to standard CSV convention, which adds quotes around a cell value only if it contains special characters (such as the delimiter character or a quote character) or spans multiple lines.  These three formats differ only with the delimiter between cells, which is comma for CSV2, tab for TSV2, and configurable for DSV (delimiterForDSV property). &lt;/P&gt;&lt;P&gt;CSV and TSV output formats are maintained for backward compatibility, but beware as they add additional single-quote characters around all cell values contrary to this convention."&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 23:02:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Beeline-select-query/m-p/158218#M20924</guid>
      <dc:creator>dtraver</dc:creator>
      <dc:date>2016-03-09T23:02:41Z</dc:date>
    </item>
  </channel>
</rss>

