Hello,

I'm running HortonWorks HDP 2.2.6, hive 0.14 alongside an ElasticSearch
cluster

For some reason Hive can't seem to connect to my ES cluster Using the ES
SerDe (I'm using elasticsearch-hadoop-2.1.0.jar). When time comes for my
job to insert the my query result in an ES resources, I get this stacktrace:

NoClassDefFoundError: org/apache/commons/httpclient/URIException
 at
org.elasticsearch.hadoop.hive.HiveUtils.structObjectInspector(HiveUtils.java:57)
 at org.elasticsearch.hadoop.hive.EsSerDe.initialize(EsSerDe.java:82)
 at org.elasticsearch.hadoop.hive.EsSerDe.initialize(EsSerDe.java:97)

I'm quite puzzled because commons-httpclient is supposed to be on the
hive-client classpath :

# ls -l /usr/hdp/current/hive-server2/lib/commons-httpclient-3.0.1.jar
-rw-r--r-- 1 root root 279781 Mar 31 20:26
/usr/hdp/current/hive-server2/lib/commons-httpclient-3.0.1.jar
# ls -l /usr/hdp/current/hive-client/lib/commons-httpclient-3.0.1.jar
-rw-r--r-- 1 root root 279781 Mar 31 20:26
/usr/hdp/current/hive-client/lib/commons-httpclient-3.0.1.jar

What am I missing ?

Thanks a lot for your help,

Kind regards,

Erwan

Reply via email to