I have an ec2 cluster of elastic search nodes out and running on amazon that are setup with the cloud-aws plugin. The nodes are finding each other with no problem. My issue is that when I deploy my grails application to the ec2 network, it gets a MasterNotDiscoveredException. When I configure the application to use discovery type ec2, it throws an invalid settings exception. This is probably because the cloud plugin is not installed in the grails application. How can I get the grails application to discover the master node? My configuration for the elastic search nodes:
Do you have the cloud-aws plugin jar file in the classpath? Including the aws dependency?
On Friday, July 15, 2011 at 10:00 PM, hoffmandirt wrote:
I have an ec2 cluster of Elasticsearch nodes out and running on amazon that
are setup with the cloud-aws plugin. The nodes are finding each other with
no problem. My issue is that when I deploy my grails application to the ec2
network, it gets a MasterNotDiscoveredException. When I configure the
application to use discovery type ec2, it throws an invalid settings
exception. This is probably because the cloud plugin is not installed in the
grails application. How can I get the grails application to discover the
master node? My configuration for the Elasticsearch nodes:
Do you have the cloud-aws plugin jar file in the classpath? Including the aws dependency?
Thanks! That was the issue. I didn't realize that there was an elasticsearch dependency for the cloud-aws plugin. Just in case anyone else stumbles upon this, add this line to your grails BuildConfig.groovy file in the dependencies section:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.