03-27-2018 01:00 PM - last edited on 03-28-2018 05:25 AM by cjervis
hello community, my version is cdh5.11.1, I'm trying to execute a Hive query by webhcat for a REST service,
curl -s -d execute="select+*+from+sample_08;" -d
but the mapreduce produces the following error:
I see that it is a library error, but I can not find a way to fix i.
Sorry for my bad english,Thanks for the help
04-04-2018 11:55 PM
04-05-2018 11:21 AM
Thanks for responding, I use the webhcat because I need the result of the query to be a json or xml file for a REST service. without using jdbc.
Webhcat was the first alternative I found.
I already solved the problem of the jar, now i have another problem, when executing the command curl the MapReduce does not find the file "hive-0.11.0.targ.gz"
Change the path in the configuration file "webhcat-default.xml", but only the node where I execute the command grabs the configuration change, the other nodes even if I change their local file "webhcat-default.xml" they remain with the old configuration.
07-11-2018 04:06 AM
Hi Rakios, How did you solve the java.lang.NoClassDefFoundError: org/apache/hadoop/hive/common/LogUtils error ?
I have created the hive.tar.gz and have made the below changes to webhcat-site.xml but i still get the above error which is java.lang.NoClassDefFoundError: org/apache/hadoop/hive/common/LogUtils. Also, the hive.tar.gz contains the hive-common jar.
Any help from Cloudera would also be appreciated.
07-23-2018 06:17 AM
I am happy to see you resolved your issue @ShashankSharma. I can understand your feelings on Cloudera not responding to your post but keep in mind that this is a peer to peer forum as outlined in the community guidelines. Clouderans do reply to the community but it is not their primary work function.