Compilation errors from Elastic Search plugin on Grails 2.3.5

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Compilation errors from Elastic Search plugin on Grails 2.3.5

I've followed the notes in the Elastic Search Plugin documentation, added the plugin to my app in the 'plugins' closure but when I run my app I get a whole load of 'unable to resolve class org.elasticsearch...' compilation errors.

Here are the first few:

| Error Compilation error: startup failed:
/Users/paulbarker/.grails/2.3.4/projects/myapp/plugins/elasticsearch- 3: unable to resolve class
 @ line 3, column 1.

/Users/paulbarker/.grails/2.3.4/projects/myapp/plugins/elasticsearch- 5: unable to resolve class org.elasticsearch.client.Requests
 @ line 5, column 1.
   import org.elasticsearch.client.Requests

/Users/paulbarker/.grails/2.3.4/projects/myapp/plugins/elasticsearch- 4: unable to resolve class org.elasticsearch.client.Client
 @ line 4, column 1.
   import org.elasticsearch.client.Client

... and so on, about another 40 times.

I noticed a similar post ( but that seemed to be related to Grails/Hibernate 4. I have ':hibernate:' in my plugin list so I don't think it's going to be that.

But I do remember seeing 'The environment variable ELASTIC_SEARCH_HOME specifying the location of ElasticSearch is not set' flash past at one point but I haven't seen it since - could that be the problem? Not sure what it should even be set to.

Anyone got any ideas?