<?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: Hive beeline multiple queries not working in command line in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397639#M249932</link>
    <description>&lt;P&gt;The query seems to be failing during the compilation phase, indicating a possible issue with its syntax.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: Error while compiling statement: FAILED: ParseException line 1:11 missing EOF at ';' near 'default' (state=42000,code=40000)&lt;/LI-CODE&gt;&lt;P&gt;It is important to validate the SQL syntax of the query to identify any potential syntax errors that may be causing the problem.&lt;BR /&gt;Another point to consider is ensuring that the column names in the query match with those in the source and target tables, as any mismatch can lead to errors.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 13:08:00 GMT</pubDate>
    <dc:creator>ggangadharan</dc:creator>
    <dc:date>2024-11-18T13:08:00Z</dc:date>
    <item>
      <title>Hive beeline multiple queries not working in command line</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397630#M249929</link>
      <description>&lt;P&gt;I am trying to run use db_name;show tables and it is failing.&amp;nbsp;&lt;BR /&gt;Can you please help me with it&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;[root@cupid ~]# sudo -u hive beeline -u "jdbc:hive2://charon.devemc.com:2181,cupid.devemc.com:2181,portia.devemc.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;" --showHeader=false --outputformat=tsv2 --delimiter=';' -e "use default;show tables;"&lt;BR /&gt;scan complete in 2ms&lt;BR /&gt;Connecting to jdbc:hive2://charon.devemc.com:2181,cupid.devemc.com:2181,portia.commvault.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;&lt;BR /&gt;Connected to: Apache Hive (version 0.14.0.2.2.9.0-3393)&lt;BR /&gt;Driver: Hive JDBC (version 0.14.0.2.2.9.0-3393)&lt;BR /&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;BR /&gt;Error: Error while compiling statement: FAILED: ParseException line 1:11 missing EOF at ';' near 'default' (state=42000,code=40000)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 10:59:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397630#M249929</guid>
      <dc:creator>jayes</dc:creator>
      <dc:date>2024-11-18T10:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hive beeline multiple queries not working in command line</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397639#M249932</link>
      <description>&lt;P&gt;The query seems to be failing during the compilation phase, indicating a possible issue with its syntax.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: Error while compiling statement: FAILED: ParseException line 1:11 missing EOF at ';' near 'default' (state=42000,code=40000)&lt;/LI-CODE&gt;&lt;P&gt;It is important to validate the SQL syntax of the query to identify any potential syntax errors that may be causing the problem.&lt;BR /&gt;Another point to consider is ensuring that the column names in the query match with those in the source and target tables, as any mismatch can lead to errors.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 13:08:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397639#M249932</guid>
      <dc:creator>ggangadharan</dc:creator>
      <dc:date>2024-11-18T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hive beeline multiple queries not working in command line</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397668#M249940</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92016"&gt;@ggangadharan&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;the query that i am running is "use &amp;lt;dbname&amp;gt;;show tables;"&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 05:26:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397668#M249940</guid>
      <dc:creator>jayes</dc:creator>
      <dc:date>2024-11-19T05:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hive beeline multiple queries not working in command line</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397847#M249997</link>
      <description>&lt;P&gt;Ideally below should work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;use default;show tables;&lt;/LI-CODE&gt;&lt;P&gt;Please check HiveServer2, HMS logs and share the stack-trace.&amp;nbsp; To identify the RootCause.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 06:14:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-beeline-multiple-queries-not-working-in-command-line/m-p/397847#M249997</guid>
      <dc:creator>ggangadharan</dc:creator>
      <dc:date>2024-11-22T06:14:33Z</dc:date>
    </item>
  </channel>
</rss>

