Issue while joining two tables stored on Elasticsearch using HiveQL #180
I tried to join two tables but it doesnt work.
I am using "elasticsearch-hadoop-1.3.0.M2.jar" and "elasticsearch-1.0.0".
This is how I created two hive external tables
CREATE EXTERNAL TABLE activity(description string,username string)
CREATE EXTERNAL TABLE user(username string,ethnicity string)
and the query that I ran is:
SELECT activity.,user. FROM activity JOIN user ON (activity.username = user.username)
The result was "no data available"
I dont understand why I am not getting the desired result. Am I doing anything wrong?
Thanks for the reply,
Job Submission failed with exception 'org.elasticsearch.hadoop.EsHadoopIllegalArgumentException(Field(s) [[block__offset__inside__file, input__file__name]] not found in the Elasticsearch mapping specified; did you mean ?)'
I have tried it with both ES1.0.0 and ES1.0.0RC2
I tried it again, but this time I got the below exception.
Exception in thread "main" java.lang.NoSuchFieldError: VIRTUAL_COLUMNS