Elasticsearch for Apache Hadoop doesn't work

(Arthur Luz) #1

Hello, guys.

I need some help with Elasticsearch for Apache Hadoop connector.

I have on my environment a hortonworks hdp cluster and with hive. I need to create a external table for elasticsearch to move data from my hdfs to elasticsearch.

Ok, I followed elasticsearch documentation and I used Add jar command to import jars. Ok. it's fine.

But, when I try to create external table I receive this error: Error:

Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: MetaException(message:java.lang.NoClassDefFoundError org/apache/commons/httpclient/Credentials) (state=08S01,code=1)

I'm using the version 3.1 of hdp cluster.

What I need to do to make this work?

can you help me?

Best regards!