Hi,
I saw the same problem on too many places.
I have Hortonworks 2.6.4, Hadoop 2.7.3.2.6.4.0-91, Hive 1.2.1000.2.6.4.0-91, and, on the same host, I have installed Elasticsearch 6.4.3.
Then, I do the following
by command line:
- wget -P /tmp https://artifacts.elastic.co/downloads/elasticsearch-hadoop/elasticsearch-hadoop-6.4.3.zip;
ok - unzip /tmp/elasticsearch-hadoop-6.4.3.zip -d /tmp;
ok - hdfs dfs -copyFromLocal /tmp/elasticsearch-hadoop-6.4.3/dist/elasticsearch-hadoop-6.4.3.jar /tmp
ok
On beeline o hive from dbeaver I do this:
-
ADD JAR hdfs:///tmp/elasticsearch-hadoop-6.4.3.jar;
LIST JAR;
ok -
CREATE EXTERNAL TABLE artists (
id BIGINT,
name STRING,
links STRUCT<url:STRING, picture:STRING>)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES('es.nodes' = 'localhost' , 'es.resource' = 'radio/artists');
ok -
select * from artists;
wrong!
I GET "java.io.IOException: org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Unsupported/Unknown Elasticsearch version 6.4.3"
Why?? my ES is 6.4.3 and my ES-Hadoop 6.4.3
I saw the java code from elasticsearch-hadoop project and found this:
For InicializationUtils.java
if (!(esVersion.startsWith("1.") || esVersion.startsWith("2."))) {
throw new EsHadoopIllegalArgumentException("Unsupported/Unknown Elasticsearch version " + esVersion);
}
This is a validation that my ES has to be 1.x or 2.x????
What is wrong here??
Thanks in advance!!!
Sergio.