- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hive - Select working in shell but not in Hue
- Labels:
-
Apache Hive
-
Cloudera Hue
Created on 01-22-2015 12:40 AM - edited 09-16-2022 02:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I created a json table in Hive and then I loaded data from a folder into it. The query is sucessful.
ADD JAR /data/hive/jars/json-serde-1.3-jar-with-dependencies.jar;
Select * from myTable
However, when I try to access the table I get an error:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
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.
Where should I look for? IS there any other jar that I have to add in order to make this work in beeswax(hue)?
Thank you!
Created 02-03-2015 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created 01-22-2015 09:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you add the jar as a jar resource in the Beeswax/Hive Editor in Hue?
Romain
Created 01-22-2015 10:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I added the serde jar in beeswax also
Thank you!
Created 01-25-2015 11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And my hive version is :
Hive 0.13.1-cdh5.3.0
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
Compiled by jenkins on Tue Dec 16 19:03:11 PST 2014
Created 01-26-2015 01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
command is different as it is not using HiveServer2)
Created 01-26-2015 02:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
It was with beeswax :
http://<ip of my namenode>:8888/beeswax/#query
Thank you!
Created 01-26-2015 06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_ig_hiveserver2_star...
Romain
Created 01-26-2015 08:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With beeline I get the same error:
Error: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer (state=,code=0)
Thank you!
Created 01-27-2015 01:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the Hive list.
Created 01-27-2015 05:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
