<?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: Ambari Hive View: HiveSQLException ParseException mismatched input in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172868#M135157</link>
    <description>&lt;P&gt;Yes, the error should be there, as the exception says &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Mar 2017 02:30:45 GMT</pubDate>
    <dc:creator>jmclopes</dc:creator>
    <dc:date>2017-03-25T02:30:45Z</dc:date>
    <item>
      <title>Ambari Hive View: HiveSQLException ParseException mismatched input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172863#M135152</link>
      <description>&lt;P&gt;I'm trying to upload a table in the Ambari Hive View. The file is tab separated and the strings are delimited by double quotes (I have set these settings in the appropriated dialog box in the upload form).&lt;/P&gt;&lt;P&gt;There is always an exception, no matter what variations of the input file I try (different field delimiter, with and without header row, ...):&lt;/P&gt;&lt;PRE&gt;    java.lang.Exception: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:77 mismatched input ',' expecting ( near 'CHAR' in primitive type specification

java.lang.Exception: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:77 mismatched input ',' expecting ( near 'CHAR' in primitive type specification
	at org.apache.ambari.view.hive2.resources.jobs.JobService.getOne(JobService.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)&lt;/PRE&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;I'm running this in the HDP Sandbox deployed in Azure.&lt;/P&gt;&lt;PRE&gt;Sandbox information:
Created on: 25_10_2016_08_11_26 for
Hadoop stack version:  Hadoop 2.7.3.2.5.0.0-1245
Ambari Version: 2.4.0.0-1225
Ambari Hash: 59175b7aa1ddb74b85551c632e3ce42fed8f0c85
Ambari build:  Release : 1225
Java version:  1.8.0_111
OS Version:  CentOS release 6.8 (Final)
&lt;/PRE&gt;&lt;P&gt;Any suggestion on how to solve this? &lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 03:37:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172863#M135152</guid>
      <dc:creator>jmclopes</dc:creator>
      <dc:date>2017-03-24T03:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive View: HiveSQLException ParseException mismatched input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172864#M135153</link>
      <description>&lt;P&gt;I did another test: I downloaded an example existing in the Sandbox (cdrs.txt) and repeated the process. It also gave an error (a different one, however). So, the problem shouldn't be the file itself.&lt;/P&gt;&lt;P&gt;  java.lang.Exception: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:61 Failed to recognize predicate 'LOCAL'. Failed rule: 'identifier' in column specification&lt;/P&gt;&lt;PRE&gt;java.lang.Exception: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:61 Failed to recognize predicate 'LOCAL'. Failed rule: 'identifier' in column specification
	at org.apache.ambari.view.hive2.resources.jobs.JobService.getOne(JobService.java:141)&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Mar 2017 03:46:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172864#M135153</guid>
      <dc:creator>jmclopes</dc:creator>
      <dc:date>2017-03-24T03:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive View: HiveSQLException ParseException mismatched input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172865#M135154</link>
      <description>&lt;P&gt;Are you using "local" in your query, it seems to be a reserved word, can you rename it to something else and try?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 10:15:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172865#M135154</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2017-03-24T10:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive View: HiveSQLException ParseException mismatched input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172866#M135155</link>
      <description>&lt;P&gt;The used sample data is from the example included in the HDP Sandbox. So it should be correct. Anyway, renaming the column names leads to the same result.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:23:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172866#M135155</guid>
      <dc:creator>jmclopes</dc:creator>
      <dc:date>2017-03-24T18:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive View: HiveSQLException ParseException mismatched input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172867#M135156</link>
      <description>&lt;P&gt;Please find error for this column &lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;java.lang.Exception: org.apache.hive.service.cli.HiveSQLException:Errorwhile compiling statement: &lt;STRONG&gt;FAILED:ParseException line 1:77 mismatched input ',' expecting ( near 'CHAR'in primitive type specification&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:51:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172867#M135156</guid>
      <dc:creator>shivkumar82015</dc:creator>
      <dc:date>2017-03-24T18:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive View: HiveSQLException ParseException mismatched input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172868#M135157</link>
      <description>&lt;P&gt;Yes, the error should be there, as the exception says &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 02:30:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172868#M135157</guid>
      <dc:creator>jmclopes</dc:creator>
      <dc:date>2017-03-25T02:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Hive View: HiveSQLException ParseException mismatched input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172869#M135158</link>
      <description>&lt;P&gt;Thank you for the replies.&lt;/P&gt;&lt;P&gt;After further analysis, I found the root of the problem. It was required to set the length of CHAR columns. The user interface has a widget to set this value, however it appearance is similar to a disabled component, instead of an input field, which is misleading.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 02:34:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Hive-View-HiveSQLException-ParseException-mismatched/m-p/172869#M135158</guid>
      <dc:creator>jmclopes</dc:creator>
      <dc:date>2017-03-25T02:34:11Z</dc:date>
    </item>
  </channel>
</rss>

