<?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: Strange issue with beeline in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-issue-with-beeline/m-p/105445#M25550</link>
    <description>&lt;P&gt;After a lot of trial and error I found the issue. &lt;STRONG&gt;The hive.hql file was expecting a new line at the end of the query&lt;/STRONG&gt; which is a bug in Hive 0.13.1 and has been fixed in hive 0.14.0.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 14:12:49 GMT</pubDate>
    <dc:creator>Alexraj84</dc:creator>
    <dc:date>2016-04-19T14:12:49Z</dc:date>
    <item>
      <title>Strange issue with beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-issue-with-beeline/m-p/105444#M25549</link>
      <description>&lt;P&gt;I was working with beeline for quite a long time and this morning I got a strange issue. When I executed the below simple beeline command I didn't get any output.&lt;/P&gt;&lt;PRE&gt;beeline -u jdbc:hive2://10.241.1.8:10000 -f testarea/hive.hql&lt;/PRE&gt;&lt;P&gt;here is what I get&lt;/P&gt;&lt;PRE&gt;$ beeline -u jdbc:hive2://10.241.1.8:10000 -f testarea/hive.hql 
scan complete in 3ms 
Connecting to jdbc:hive2://10.241.1.8:10000 
Connected to: Apache Hive (version 0.13.1-cdh5.3.6) 
Driver: Hive JDBC (version 0.13.1-cdh5.3.6) 
Transaction isolation: TRANSACTION_REPEATABLE_READ 
0: jdbc:hive2://10.241.1.8:10000&amp;gt; select count (*) from active_139;
Closing: 0: jdbc:hive2://10.241.1.8:10000&lt;/PRE&gt;&lt;P&gt;the hive.hql contains the below hive query&lt;/P&gt;&lt;PRE&gt;select count (*) from active_139;&lt;/PRE&gt;&lt;P&gt;However if I execute the same hive query from beeline it works.&lt;/P&gt;&lt;PRE&gt;$ beeline -u jdbc:hive2://10.241.1.8:10000 -e 'select count (*) from active_139;'
scan complete in 3ms
Connecting to jdbc:hive2://10.241.1.8:10000
Connected to: Apache Hive (version 0.13.1-cdh5.3.6)
Driver: Hive JDBC (version 0.13.1-cdh5.3.6)
Transaction isolation: TRANSACTION_REPEATABLE_READ
+---------+--+
|   _c0   |
+---------+--+
| 121837  |
+---------+--+
1 row selected (23.827 seconds)
Beeline version 0.13.1-cdh5.3.6 by Apache Hive
Closing: 0: jdbc:hive2://10.241.1.8:10000&lt;/PRE&gt;&lt;P&gt;Any body got a clue on this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 12:47:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-issue-with-beeline/m-p/105444#M25549</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-04-19T12:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Strange issue with beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-issue-with-beeline/m-p/105445#M25550</link>
      <description>&lt;P&gt;After a lot of trial and error I found the issue. &lt;STRONG&gt;The hive.hql file was expecting a new line at the end of the query&lt;/STRONG&gt; which is a bug in Hive 0.13.1 and has been fixed in hive 0.14.0.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:12:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-issue-with-beeline/m-p/105445#M25550</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-04-19T14:12:49Z</dc:date>
    </item>
  </channel>
</rss>

