<?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: Compiling statement: FAILED: ParseException : cannot recognize input near '&amp;lt;EOF&amp;gt; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/347853#M235261</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16544"&gt;@csguna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set hive.variable.substitute=true;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share what is the purpose inserting this line to the code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sun, 17 Jul 2022 08:34:01 GMT</pubDate>
    <dc:creator>newbieone</dc:creator>
    <dc:date>2022-07-17T08:34:01Z</dc:date>
    <item>
      <title>Compiling statement: FAILED: ParseException : cannot recognize input near '&lt;EOF&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/66317#M4548</link>
      <description>&lt;P&gt;Dear Support,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a problem upgrading CDH from 5.9.1 to 5.9.3&lt;BR /&gt;The shells on CDH 5.9.1 are going well, but on CDH 5.9.3 show errors.&lt;BR /&gt;Here are the examples.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;CASE 1.&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;[root@tcrmmn1 SH]# cat test.hql&lt;/STRONG&gt;&lt;BR /&gt;insert into default.sample_07&lt;BR /&gt;--test&lt;BR /&gt;select * from default.sample_07 limit 10&lt;BR /&gt;;&lt;BR /&gt;&lt;STRONG&gt;[root@tcrmmn1 SH]# ./test9_nok.sh&lt;/STRONG&gt;&lt;BR /&gt;insert into default.sample_07&lt;BR /&gt;--test&lt;BR /&gt;select * from default.sample_07 limit 10&lt;BR /&gt;;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Error: Error while compiling statement: FAILED: ParseException line 1:29 cannot recognize input near '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' in statement (state=42000,code=40000)&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;[root@tcrmmn1 SH]# cat test9_nok.sh&lt;/STRONG&gt;&lt;BR /&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;value=`cat test.hql`&lt;BR /&gt;echo "$value"&lt;/P&gt;&lt;P&gt;beeline -u jdbc:hive2://10.1.9.5:10000/default?characterEncoding=UTF-8 -n hive -p 1qaz@WSX3edc --verbose=false --showHeader=false --silent=true --outputformat=tsv2 &lt;FONT color="#FF0000"&gt;-e "$value"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;CASE 2.&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;[root@tcrmmn1 SH]# ./test7_nok.sh&lt;/STRONG&gt;&lt;BR /&gt;insert into default.sample_07&lt;BR /&gt;--test&lt;BR /&gt;select * from default.sample_07 limit 10&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Error: Error while compiling statement: FAILED: ParseException line 1:29 cannot recognize input near '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' in statement (state=42000,code=40000)&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;[root@tcrmmn1 SH]# cat test7_nok.sh&lt;/STRONG&gt;&lt;BR /&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;V_SQL=\&lt;BR /&gt;"insert into default.sample_07&lt;BR /&gt;--test&lt;BR /&gt;select * from default.sample_07 limit 10&lt;BR /&gt;;&lt;BR /&gt;"&lt;BR /&gt;echo "${V_SQL}"&lt;/P&gt;&lt;P&gt;beeline -u jdbc:hive2://10.1.9.5:10000/default?characterEncoding=UTF-8 -n hive -p 1qaz@WSX3edc --verbose=false --showHeader=false --silent=true --outputformat=tsv2 &lt;FONT color="#FF0000"&gt;-e "${V_SQL}"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;I also try the option -f. It's fine. Excute Sucessfuly.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@tcrmmn1 SH]# cat test10_ok.sh&lt;/STRONG&gt;&lt;BR /&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;value=`cat test.hql`&lt;BR /&gt;echo "$value"&lt;/P&gt;&lt;P&gt;beeline -u jdbc:hive2://10.1.9.5:10000/default?characterEncoding=UTF-8 -n hive -p 1qaz@WSX3edc --verbose=false --showHeader=false --silent=true --outputformat=tsv2 &lt;FONT color="#0000FF"&gt;-f test.hql&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;How can I fix it without modifying shell file?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Thank you!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Best Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Ping&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:06:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/66317#M4548</guid>
      <dc:creator>superdabin</dc:creator>
      <dc:date>2022-09-16T13:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling statement: FAILED: ParseException : cannot recognize input near '&lt;EOF&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/66360#M4549</link>
      <description>&lt;P&gt;does your&lt;/P&gt;&lt;PRE&gt;set hive.variable.substitute=true;&lt;/PRE&gt;&lt;P&gt;script has this line inserted ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 02:43:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/66360#M4549</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2018-04-16T02:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling statement: FAILED: ParseException : cannot recognize input near '&lt;EOF&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/66362#M4550</link>
      <description>&lt;P&gt;Thanks for replying&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add the&amp;nbsp;property to the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;beeline -u jdbc:hive2://10.7.2.111:10000/default?characterEncoding=UTF-8 -n hive -p 1qaz@WSX3edc &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;--hiveconf hive.variable.substitute=true&lt;/STRONG&gt;&lt;/FONT&gt; --verbose=false --showHeader=false --silent=true --outputformat=tsv2 -e "$value"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is the same.&lt;/P&gt;&lt;P&gt;Error: Error while compiling statement: FAILED: ParseException line 1:29 cannot recognize input near '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' in statement (state=42000,code=40000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 04:13:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/66362#M4550</guid>
      <dc:creator>superdabin</dc:creator>
      <dc:date>2018-04-16T04:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling statement: FAILED: ParseException : cannot recognize input near '&lt;EOF&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/67193#M4551</link>
      <description>&lt;P&gt;This regression was introduced into the product in CDH 5.9.2 [HIVE-13864] and it was addressed in CDH 5.11.2, CDH 5.12.1 or CDH 5.13.0 and higher. [HIVE-17050]&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 19:26:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/67193#M4551</guid>
      <dc:creator>David M.</dc:creator>
      <dc:date>2018-05-11T19:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling statement: FAILED: ParseException : cannot recognize input near '&lt;EOF&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/79051#M4552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have exactly the issue described in this post and I am running CDH 5.13.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried putting this in the hql script as mentioned above:&lt;/P&gt;&lt;P&gt;set hive.variable.substitute=true;&lt;/P&gt;&lt;P&gt;and that does not help either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone advise what to try ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 03:02:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/79051#M4552</guid>
      <dc:creator>Daggers</dc:creator>
      <dc:date>2018-08-27T03:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling statement: FAILED: ParseException : cannot recognize input near '&lt;EOF&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/347853#M235261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16544"&gt;@csguna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set hive.variable.substitute=true;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share what is the purpose inserting this line to the code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2022 08:34:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/347853#M235261</guid>
      <dc:creator>newbieone</dc:creator>
      <dc:date>2022-07-17T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling statement: FAILED: ParseException : cannot recognize input near '&lt;EOF&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/347932#M235285</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/99226"&gt;@newbieone&lt;/a&gt;, as this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 09:31:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Compiling-statement-FAILED-ParseException-cannot-recognize/m-p/347932#M235285</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2022-07-18T09:31:35Z</dc:date>
    </item>
  </channel>
</rss>

