ClassNotFoundException: org.elasticsearch.discovery.ec2.Ec2DiscoveryModule

New to ES - Trying to use the elasticsearch-cloud-aws plugin, but when
starting my java client node, I'm getting ClassNotFoundException
on org.elasticsearch.discovery.ec2.Ec2DiscoveryModule. Do I need to
install this plugin on java client nodes, and if so, how does one do that?
Or, rather, is there a maven dependency that can be referenced to load
these required classes?

For reference, the elasticsearch.yaml is:

plugin.mandatory: cloud-aws
cloud:
aws:
access_key: ******
secret_key: *****
discovery:
type: ec2

and my java client code is:

Settings settings = ImmutableSettings.settingsBuilder()
.put("node.name", nodeName)
.put("cloud.aws.access_key", awsAccessKey)
.put("cloud.aws.secret_key", awsSecretKey)
.put("cloud.node.auto_attributes", true)
.put("discovery.type", "ec2")
.build();
this.node = nodeBuilder()
.clusterName(clusterName)
.settings(settings)
.client(true)
.node();
this.client = node.client();

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/925353fd-b717-417d-986f-570c634e39c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes.

This should be added to the doc: https://github.com/elasticsearch/elasticsearch-cloud-aws/issues/176

You need to add this dependency if you are using a NodeClient:

org.elasticsearch
elasticsearch-cloud-aws
2.4.1

HTH
David

Le 19 févr. 2015 à 01:15, Diana Tuck dtuck9@gmail.com a écrit :

New to ES - Trying to use the elasticsearch-cloud-aws plugin, but when starting my java client node, I'm getting ClassNotFoundException on org.elasticsearch.discovery.ec2.Ec2DiscoveryModule. Do I need to install this plugin on java client nodes, and if so, how does one do that? Or, rather, is there a maven dependency that can be referenced to load these required classes?

For reference, the elasticsearch.yaml is:

plugin.mandatory: cloud-aws
cloud:
aws:
access_key: ******
secret_key: *****
discovery:
type: ec2

and my java client code is:

Settings settings = ImmutableSettings.settingsBuilder()
.put("node.name", nodeName)
.put("cloud.aws.access_key", awsAccessKey)
.put("cloud.aws.secret_key", awsSecretKey)
.put("cloud.node.auto_attributes", true)
.put("discovery.type", "ec2")
.build();
this.node = nodeBuilder()
.clusterName(clusterName)
.settings(settings)
.client(true)
.node();
this.client = node.client();

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/925353fd-b717-417d-986f-570c634e39c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/E6E5D8C5-3A9A-46A1-9531-95514F4708BB%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Thanks, David. I eventually ended up finding the pom on the github repo.
Thanks for adding the documentation!!

On Wednesday, February 18, 2015 at 10:39:19 PM UTC-8, David Pilato wrote:

Yes.

This should be added to the doc:
https://github.com/elasticsearch/elasticsearch-cloud-aws/issues/176

You need to add this dependency if you are using a NodeClient:

org.elasticsearch elasticsearch-cloud-aws</
artifactId>
2.4.1
HTH
David

Le 19 févr. 2015 à 01:15, Diana Tuck <dtu...@gmail.com <javascript:>> a
écrit :

New to ES - Trying to use the elasticsearch-cloud-aws plugin, but when
starting my java client node, I'm getting ClassNotFoundException
on org.elasticsearch.discovery.ec2.Ec2DiscoveryModule. Do I need to
install this plugin on java client nodes, and if so, how does one do that?
Or, rather, is there a maven dependency that can be referenced to load
these required classes?

For reference, the elasticsearch.yaml is:

plugin.mandatory: cloud-aws
cloud:
aws:
access_key: ******
secret_key: *****
discovery:
type: ec2

and my java client code is:

Settings settings = ImmutableSettings.settingsBuilder()
.put("node.name", nodeName)
.put("cloud.aws.access_key", awsAccessKey)
.put("cloud.aws.secret_key", awsSecretKey)
.put("cloud.node.auto_attributes", true)
.put("discovery.type", "ec2")
.build();
this.node = nodeBuilder()
.clusterName(clusterName)
.settings(settings)
.client(true)
.node();
this.client = node.client();

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/925353fd-b717-417d-986f-570c634e39c1%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/925353fd-b717-417d-986f-570c634e39c1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3fc41382-3521-416d-8052-50f342462816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.