<?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 in ambari KW_ROLE error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-in-ambari-KW-ROLE-error/m-p/124655#M51340</link>
    <description>&lt;P&gt;User and following needed to be enclosed in backticks and the keyword STORED was missing.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2017 01:56:27 GMT</pubDate>
    <dc:creator>ed_day</dc:creator>
    <dc:date>2017-01-12T01:56:27Z</dc:date>
    <item>
      <title>hive in ambari KW_ROLE error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-in-ambari-KW-ROLE-error/m-p/124654#M51339</link>
      <description>&lt;P&gt;From this Hive script (submitted in Ambari 2.2.1.0):&lt;/P&gt;&lt;PRE&gt;set hive.execution.engine=tez;
SET hive.support.sql11.reserved.keywords=false;
create table tweets (
  contributors string,
  coordinates string,
  created_at string,
  entities struct &amp;lt;
    hashtags: array &amp;lt;string&amp;gt;,
    symbols: array &amp;lt;string&amp;gt;,
    urls: array &amp;lt;struct &amp;lt;
        display_url: string,
        expanded_url: string,
        indices: array &amp;lt;tinyint&amp;gt;,
        url: string&amp;gt;&amp;gt;,
    user_mentions: array &amp;lt;string&amp;gt;&amp;gt;,
  favorite_count tinyint,
  favorited boolean,
  filter_level string,
  geo string,
  id bigint,
  id_str binary,
  in_reply_to_screen_name string,
  in_reply_to_status_id string,
  in_reply_to_status_id_str string,
  in_reply_to_user_id string,
  in_reply_to_user_id_str string,
  is_quote_status boolean,
  lang string,
  place string,
  possibly_sensitive boolean,
  retweet_count tinyint,
  retweeted boolean,
  source string,
  text string,
  timestamp_ms string,
  truncated boolean,
  user struct &amp;lt;
    contributors_enabled: boolean,
    created_at: string,
    default_profile: boolean,
    default_profile_image: boolean,
    description: string,
    favourites_count: tinyint,
    follow_request_sent: string,
    followers_count: tinyint,
    following: string,
    friends_count: tinyint,
    geo_enabled: boolean,
    id: bigint,
    id_str: binary,
    is_translator: boolean,
    lang: string,
    listed_count: tinyint,
    location: string,
    name: string,
    notifications: string,
    profile_background_color: binary,
    profile_background_image_url: string,
    profile_background_image_url_https: string,
    profile_background_tile: boolean,
    profile_image_url: string,
    profile_image_url_https: string,
    profile_link_color: binary,
    profile_sidebar_border_color: binary,
    profile_sidebar_fill_color: binary,
    profile_text_color: binary,
    profile_use_background_image: boolean,
    protected: boolean,
    screen_name: string,
    statuses_count: smallint,
    time_zone: string,
    url: string,
    utc_offset: string,
    verified: boolean&amp;gt;
)
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
AS ORC tblproperties ("orc.compress"="ZLIB");

LOAD DATA LOCAL INPATH '/home/ed/Downloads/hive-json-master/1abbo.txt' OVERWRITE INTO TABLE tweets;

SELECT COUNT(*) from tweets;
&lt;/PRE&gt;&lt;P&gt;I am getting:&lt;/P&gt;&lt;PRE&gt; Error while compiling statement: FAILED: ParseException line 4:4 missing KW_ROLE at 'hive' near 'hive' line 4:8 missing EOF at '.' near 'hive' [ERROR_STATUS]
&lt;/PRE&gt;&lt;P&gt;I use Hdp 2.4.2.0-258.&lt;/P&gt;&lt;P&gt;I found the following but don't know if it any help in fixing this. Any help is much appreciated:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mail-archive.com/issues@ambari.apache.org/msg00327.html" target="_blank"&gt;https://www.mail-archive.com/issues@ambari.apache.org/msg00327.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 23:03:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-in-ambari-KW-ROLE-error/m-p/124654#M51339</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-01-11T23:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: hive in ambari KW_ROLE error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-in-ambari-KW-ROLE-error/m-p/124655#M51340</link>
      <description>&lt;P&gt;User and following needed to be enclosed in backticks and the keyword STORED was missing.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 01:56:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-in-ambari-KW-ROLE-error/m-p/124655#M51340</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-01-12T01:56:27Z</dc:date>
    </item>
  </channel>
</rss>

