<?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: Where should I add hive.support.sql11.reserved.keywords on Ambari Hive? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113854#M22101</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2547/muanang.html" nodeid="2547" target="_blank"&gt;@Michael Dennis Uanang&lt;/A&gt;   &lt;/P&gt;&lt;P&gt;See this &lt;/P&gt;&lt;P&gt;hive&amp;gt; create table test5 (create string);&lt;/P&gt;&lt;P&gt;FailedPredicateException(identifier,{useSQL11ReservedKeywordsForIdentifier()}?)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:11644)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:45920)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameType(HiveParser.java:38052)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameTypeList(HiveParser.java:36183)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.createTableStatement(HiveParser.java:5222)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(HiveParser.java:2648)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1658)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1117)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:428)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:316)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1181)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1229)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1118)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1108)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:216)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:168)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:379)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:739)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624)&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;/P&gt;&lt;P&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Method.invoke(Method.java:606)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.util.RunJar.run(RunJar.java:221)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.util.RunJar.main(RunJar.java:136)&lt;/P&gt;&lt;P&gt;FAILED: ParseException line 1:20 Failed to recognize predicate 'create'. Failed rule: 'identifier' in column specification&lt;/P&gt;&lt;P&gt;hive&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2648-screen-shot-2016-03-07-at-23323-pm.png" style="width: 1682px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23159iD52147DD74558E99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2648-screen-shot-2016-03-07-at-23323-pm.png" alt="2648-screen-shot-2016-03-07-at-23323-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 11:07:57 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2019-08-19T11:07:57Z</dc:date>
    <item>
      <title>Where should I add hive.support.sql11.reserved.keywords on Ambari Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113852#M22099</link>
      <description>&lt;P&gt;I found this hive conf for 1.2 version.&lt;/P&gt;&lt;P&gt;hive.support.sql11.reserved.keywords=false&lt;/P&gt;&lt;P&gt;Where should I put it on my Ambari&amp;gt;Hive?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:38:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113852#M22099</guid>
      <dc:creator>muanang</dc:creator>
      <dc:date>2016-03-07T16:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Where should I add hive.support.sql11.reserved.keywords on Ambari Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113853#M22100</link>
      <description>&lt;P&gt;Try custom-hive &lt;A rel="user" href="https://community.cloudera.com/users/2547/muanang.html" nodeid="2547"&gt;@Michael Dennis Uanang&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6761i220DCE267D935D0B/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="screen-shot-2016-03-07-at-21243-pm.png" title="screen-shot-2016-03-07-at-21243-pm.png" /&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:43:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113853#M22100</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-03-07T16:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where should I add hive.support.sql11.reserved.keywords on Ambari Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113854#M22101</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2547/muanang.html" nodeid="2547" target="_blank"&gt;@Michael Dennis Uanang&lt;/A&gt;   &lt;/P&gt;&lt;P&gt;See this &lt;/P&gt;&lt;P&gt;hive&amp;gt; create table test5 (create string);&lt;/P&gt;&lt;P&gt;FailedPredicateException(identifier,{useSQL11ReservedKeywordsForIdentifier()}?)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:11644)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:45920)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameType(HiveParser.java:38052)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameTypeList(HiveParser.java:36183)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.createTableStatement(HiveParser.java:5222)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(HiveParser.java:2648)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1658)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1117)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:428)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:316)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1181)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1229)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1118)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1108)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:216)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:168)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:379)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:739)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624)&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;/P&gt;&lt;P&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Method.invoke(Method.java:606)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.util.RunJar.run(RunJar.java:221)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.util.RunJar.main(RunJar.java:136)&lt;/P&gt;&lt;P&gt;FAILED: ParseException line 1:20 Failed to recognize predicate 'create'. Failed rule: 'identifier' in column specification&lt;/P&gt;&lt;P&gt;hive&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2648-screen-shot-2016-03-07-at-23323-pm.png" style="width: 1682px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23159iD52147DD74558E99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2648-screen-shot-2016-03-07-at-23323-pm.png" alt="2648-screen-shot-2016-03-07-at-23323-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:07:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113854#M22101</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2019-08-19T11:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where should I add hive.support.sql11.reserved.keywords on Ambari Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113855#M22102</link>
      <description>&lt;P&gt;Thanks again, &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;I'll try it and will post the result.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 17:13:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113855#M22102</guid>
      <dc:creator>muanang</dc:creator>
      <dc:date>2016-03-07T17:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where should I add hive.support.sql11.reserved.keywords on Ambari Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113856#M22103</link>
      <description>&lt;P&gt;That's a great question. I faced that choice when my DDL statement had reserved keywords like 'name'. It would not work without that property because name is now a reserved keyword and hive checks for that. Notice you have to always include it as even queries against tables that have these reserved words need to have this property unset&lt;/P&gt;&lt;PRE&gt;SET hive.support.sql11.reserved.keywords=false;
DROP TABLE IF EXISTS tweets;
CREATE EXTERNAL TABLE tweets (  createddate string,  geolocation string,  tweetmessage string,  `user` struct&amp;lt;geoenabled:boolean, id:int, name:string, screenname:string, userlocation:string&amp;gt;)ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'LOCATION '/user/root/';
2. 
SET hive.support.sql11.reserved.keywords=false;SELECT DISTINCT tweetmessage, user.name, createddateFROM tweets WHERE user.name = 'Hortonworks'ORDER BY createddate;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2016 20:22:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113856#M22103</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-03-07T20:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where should I add hive.support.sql11.reserved.keywords on Ambari Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113857#M22104</link>
      <description>&lt;P&gt;It worked! Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 08:36:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113857#M22104</guid>
      <dc:creator>muanang</dc:creator>
      <dc:date>2016-03-08T08:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where should I add hive.support.sql11.reserved.keywords on Ambari Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113858#M22105</link>
      <description>&lt;P&gt;We had to add this to custom hive-site (custom hive-env does not work).  Once added to custom hive-site, this worked fine.&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 18:34:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-should-I-add-hive-support-sql11-reserved-keywords-on/m-p/113858#M22105</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2018-07-03T18:34:21Z</dc:date>
    </item>
  </channel>
</rss>

