<?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 Hive - Select working in shell but not in Hue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/23942#M23215</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a json table in Hive and then I loaded data from a folder into it. The query is sucessful.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ADD JAR /data/hive/jars/json-serde-1.3-jar-with-dependencies.jar;&lt;BR /&gt;Select * from myTable&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;However, when I try to access the table&amp;nbsp;I get an error:&lt;/P&gt;&lt;PRE&gt;java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer&lt;/PRE&gt;&lt;P&gt;When I try to access the same table with the same query in Hive shell I do not get any error and I can acess the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where should I look for? IS there any other jar that I have to add in order to make this work in beeswax(hue)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:20:00 GMT</pubDate>
    <dc:creator>AlinaGHERMAN</dc:creator>
    <dc:date>2022-09-16T09:20:00Z</dc:date>
    <item>
      <title>Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/23942#M23215</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a json table in Hive and then I loaded data from a folder into it. The query is sucessful.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ADD JAR /data/hive/jars/json-serde-1.3-jar-with-dependencies.jar;&lt;BR /&gt;Select * from myTable&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;However, when I try to access the table&amp;nbsp;I get an error:&lt;/P&gt;&lt;PRE&gt;java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer&lt;/PRE&gt;&lt;P&gt;When I try to access the same table with the same query in Hive shell I do not get any error and I can acess the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where should I look for? IS there any other jar that I have to add in order to make this work in beeswax(hue)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:20:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/23942#M23215</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2022-09-16T09:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/23965#M23216</link>
      <description>Which Hue / Hive version are you using?&lt;BR /&gt;&lt;BR /&gt;Did you add the jar as a jar resource in the Beeswax/Hive Editor in Hue?&lt;BR /&gt;&lt;BR /&gt;Romain&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2015 17:46:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/23965#M23216</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2015-01-22T17:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/23967#M23217</link>
      <description>&lt;P&gt;Yes, I added the serde jar in beeswax also&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 18:22:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/23967#M23217</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-01-22T18:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24048#M23218</link>
      <description>&lt;P&gt;And my hive version is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hive 0.13.1-cdh5.3.0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Subversion git://rhel64-6-0-mk4.jenkins.cloudera.com/data/1/jenkins/workspace/generic-package-rhel64-6-0/topdir/BUILD/hive-0.13.1-cdh5.3.0 -r 8e266e052e423af592871e2dfe09d54c03f6a0e8&lt;BR /&gt;Compiled by jenkins on Tue Dec 16 19:03:11 PST 2014&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 07:42:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24048#M23218</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-01-26T07:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24051#M23219</link>
      <description>When you tried with the Hive shell, was it with 'beeline'? (as the 'hive'&lt;BR /&gt;command is different as it is not using HiveServer2)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jan 2015 09:41:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24051#M23219</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2015-01-26T09:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24053#M23220</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was with beeswax :&lt;/P&gt;&lt;P&gt;http://&amp;lt;ip of my namenode&amp;gt;:8888/beeswax/#query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 10:51:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24053#M23220</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-01-26T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24056#M23221</link>
      <description>Yes, you need to try with 'beeline':&lt;BR /&gt;&lt;BR /&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_ig_hiveserver2_start_stop.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_ig_hiveserver2_start_stop.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Romain&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jan 2015 14:08:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24056#M23221</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2015-01-26T14:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24065#M23222</link>
      <description>&lt;P&gt;With beeline I get the same error:&lt;/P&gt;&lt;PRE&gt; Error: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer (state=,code=0)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:08:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24065#M23222</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-01-26T16:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24110#M23223</link>
      <description>Here we go, your Hive setup has probably a problem. You should follow-up on&lt;BR /&gt;the Hive list.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jan 2015 09:26:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24110#M23223</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2015-01-27T09:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24115#M23224</link>
      <description>&lt;P&gt;But.. I get this only with this table! I don't thing is a hive configuration (We installed everything with Cloudera Manager and we didn't changed the default settings)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 13:11:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24115#M23224</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-01-27T13:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24296#M23225</link>
      <description>&lt;P&gt;In the select there was a ',' missing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:01:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24296#M23225</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-02-03T14:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24297#M23226</link>
      <description>Awesome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:26:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/24297#M23226</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2015-02-03T14:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/26941#M23227</link>
      <description>&lt;P&gt;hi, Romain,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am having the same issue. I just installed CDH5.4 and use&amp;nbsp;json-serde-1.3-jar-with-dependencies.jar to create external table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE IF NOT EXISTS mytable2 (field1 string, field2 int, field3 string, field4 double) ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe' WITH SERDEPROPERTIES ( "ignore.malformed.json" = "true") LOCATION '/tmp/mytable2';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The testing data is:&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;{"field1":"data1","field2":100,"field3":"more data1","field4":123.001}&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Hive CLI I am able to query the table. But when I use beeline or Hue interface, I got the same error:&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Error: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer (state=,code=0)&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;I have copied the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;json-serde-1.3-jar-with-dependencies.jar to the following directory but it still does not work:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;/var/opt/cloudera/parcels/CDH/lib/hive/lib/&lt;/P&gt;&lt;P class="p1"&gt;/var/opt/cloudera/parcels/CDH/lib/hadoop/lib/&lt;/P&gt;&lt;P class="p1"&gt;/var/opt/cloudera/parcels/CDH/lib/hadoop-mapreduce/lib/&lt;/P&gt;&lt;P class="p1"&gt;/var/opt/cloudera/parcels/CDH/lib/hadoop-0.20-mapreduce/lib/&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp; Do you know the reason?&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;thanks&lt;/P&gt;&lt;P class="p1"&gt;Bin&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 23:35:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/26941#M23227</guid>
      <dc:creator>skylark</dc:creator>
      <dc:date>2015-05-01T23:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/27014#M23228</link>
      <description>Did you load the jar in the editor?&lt;BR /&gt;&lt;BR /&gt;A bit like &lt;A target="_blank" href="http://gethue.com/hadoop-tutorial-hive-udf-in-1-minute/"&gt;http://gethue.com/hadoop-tutorial-hive-udf-in-1-minute/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 May 2015 03:58:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/27014#M23228</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2015-05-05T03:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Select working in shell but not in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/40934#M23229</link>
      <description>&lt;P&gt;Hi Romainr,&lt;BR /&gt;I am using cdh5.5.2 with Hue 3.9.0.&lt;BR /&gt;As part of Hive Config, I have set Hive Auxiliary JARs Directory as '/usr/lib/hive/lib' which contains the Json Serde Jar.&lt;BR /&gt;Further I have -&lt;BR /&gt;1) Using Hive Command Line - Created a table in Hive, with [ ROW FORMAT SERDE 'com.cloudera.hive.serde.JSONSerDe' ]&lt;BR /&gt;2) Loaded sample data to Hive table&lt;BR /&gt;3) Ran 'select * tableName;' successfully.&lt;BR /&gt;4) When I ran the same in &amp;lt; Hue - Hive Editor &amp;gt;, I am facing the following error-&lt;BR /&gt;FAILED: RuntimeException MetaException(message:java.lang.ClassNotFoundException Class com.cloudera.hive.serde.JSONSerDe not found)&lt;BR /&gt;&lt;BR /&gt;Can you please advise ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 17:21:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Select-working-in-shell-but-not-in-Hue/m-p/40934#M23229</guid>
      <dc:creator>rastogishivam</dc:creator>
      <dc:date>2016-05-17T17:21:35Z</dc:date>
    </item>
  </channel>
</rss>

