# 0.8.0 - aws - cloud discovery failing with a jgroups related Exception

**URL:** <https://discuss.elastic.co/t/0-8-0-aws-cloud-discovery-failing-with-a-jgroups-related-exception/3004>\
**Category:** Elasticsearch\
**Created:** [June 9, 2010, 8:20am UTC](https://discuss.elastic.co/t/0-8-0-aws-cloud-discovery-failing-with-a-jgroups-related-exception/3004 "2010-06-09T08:20:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuzur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zuzur/32/3336_2.png) [@zuzur](https://discuss.elastic.co/u/zuzur)\
**Post date:** [June 9, 2010, 8:20am UTC](https://discuss.elastic.co/t/0-8-0-aws-cloud-discovery-failing-with-a-jgroups-related-exception/3004/1 "2010-06-09T08:20:02Z")

</div>

Hello,

I'm trying to build a small, aws-based test cluster using the  
following configuration:

cloud:  
type: amazon  
account: XXXXXXXXXXXXXXXXXXX  
key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX  
compute:  
type: amazon  
discovery:  
type: cloud  
gateway:  
type: cloud  
cloud:  
container: elasticsearch-data

I get the following error when starting up elasticsearch (that's the  
master, there is no other instance currently running it ...)

[07:46:02,194][INFO][node] [Bison]  
{ElasticSearch/0.8.0}[13396]: Initializing ...  
[07:46:02,216][INFO][plugins] [Bison] Loaded  
[cloud]  
[07:46:09,439][INFO][cloud.compute] [Bison] Connected to  
ec2/xxxxxxxxxxxxxxxxxx compute service  
[07:46:09,936][INFO][cloud.blobstore] [Bison] Connected to  
s3/xxxxxxxxxxxxxxxxxx blob store service  
[07:46:10,793][INFO][node] [Bison]  
{ElasticSearch/0.8.0}[13396]: Initialized  
[07:46:10,793][INFO][node] [Bison]  
{ElasticSearch/0.8.0}[13396]: Starting ...  
[07:46:10,883][INFO][transport] [Bison]  
bound\_address[inet[/0:0:0:0:0:0:0:0:9300]], publish\_address[inet[/  
10.241.70.84:9300]]  
[07:46:11,244][WARN]  
[cloud.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata]  
[Bison] no tag parsed from i-xxxxxxxx's groups: [Restricted]  
\< lots of the same message about other instances we are running \>  
[07:46:16,713][ERROR][jclouds.compute] [Bison] nodes,  
completed: 3/4, errors: 1, rate: 1453ms/op  
java.util.concurrent.ExecutionException:  
java.util.NoSuchElementException  
at java.util.concurrent.FutureTask  
$Sync.innerGet(FutureTask.java:222)  
at java.util.concurrent.FutureTask.get(FutureTask.java:83)  
at  
com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:  
60)  
at org.jclouds.concurrent.ConcurrentUtils  
$1.run(ConcurrentUtils.java:69)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.runTask(ThreadPoolExecutor.java:886)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:619)  
Caused by: java.util.NoSuchElementException  
at java.util.LinkedHashMap  
$LinkedHashIterator.nextEntry(LinkedHashMap.java:374)  
at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:  
383)  
at  
com.google.common.collect.Iterators.getOnlyElement(Iterators.java:271)  
at  
com.google.common.collect.Iterables.getOnlyElement(Iterables.java:206)  
at  
org.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata.getLoginAccountFor(RunningInstanceToNodeMetadata.java:  
270)  
at  
org.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata.getCredentialsForInstanceWithTag(RunningInstanceToNodeMetadata.java:  
181)  
at  
org.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata.apply(RunningInstanceToNodeMetadata.java:  
157)  
at  
org.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata.apply(RunningInstanceToNodeMetadata.java:  
61)  
at com.google.common.collect.Iterators$8.next(Iterators.java:  
730)  
at com.google.common.collect.Iterators.addAll(Iterators.java:  
330)  
at com.google.common.collect.Iterables.addAll(Iterables.java:  
249)  
at  
org.jclouds.aws.ec2.compute.config.EC2ComputeServiceContextModule  
$EC2ListNodesStrategy$1.call(EC2ComputeServiceContextModule.java:206)  
at  
org.jclouds.aws.ec2.compute.config.EC2ComputeServiceContextModule  
$EC2ListNodesStrategy$1.call(EC2ComputeServiceContextModule.java:203)  
at java.util.concurrent.FutureTask  
$Sync.innerRun(FutureTask.java:303)  
at java.util.concurrent.FutureTask.run(FutureTask.java:138)  
... 3 more  
[07:46:16,714][ERROR][jclouds.compute] [Bison] nodes,  
completed: 3/4, errors: 1, rate: 1454ms/op  
java.lang.RuntimeException: nodes, completed: 3/4, errors: 1, rate:  
1454ms/op  
at  
org.jclouds.concurrent.ConcurrentUtils.awaitCompletion(ConcurrentUtils.java:  
87)  
at  
org.jclouds.aws.ec2.compute.config.EC2ComputeServiceContextModule  
$EC2ListNodesStrategy.listDetailsOnNodesMatching(EC2ComputeServiceContextModule.java:  
213)  
at  
org.jclouds.aws.ec2.compute.config.EC2ComputeServiceContextModule  
$EC2ListNodesStrategy.list(EC2ComputeServiceContextModule.java:191)  
at  
org.jclouds.compute.internal.BaseComputeService.listNodes(BaseComputeService.java:  
228)  
at  
org.elasticsearch.discovery.cloud.CloudZenPing.buildDynamicNodes(CloudZenPing.java:  
68)  
at  
org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.sendPings(UnicastZenPing.java:  
172)  
at  
org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.ping(UnicastZenPing.java:  
154)  
at  
org.elasticsearch.discovery.zen.ping.ZenPingService.ping(ZenPingService.java:  
130)  
at  
org.elasticsearch.discovery.zen.ping.ZenPingService.pingAndWait(ZenPingService.java:  
112)  
at  
org.elasticsearch.discovery.zen.ZenDiscovery.broadPingTillMasterResolved(ZenDiscovery.java:  
407)  
at  
org.elasticsearch.discovery.zen.ZenDiscovery.initialJoin(ZenDiscovery.java:  
226)  
at  
org.elasticsearch.discovery.zen.ZenDiscovery.doStart(ZenDiscovery.java:  
147)  
at  
org.elasticsearch.util.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:  
80)  
at  
org.elasticsearch.discovery.DiscoveryService.doStart(DiscoveryService.java:  
58)  
at  
org.elasticsearch.util.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:  
80)  
at  
org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:  
176)  
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:  
115)  
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:  
168)  
[07:46:16,715][ERROR][bootstrap] [Bison]  
{ElasticSearch/0.8.0}: Startup Failed ...

- RuntimeException[error parsing nodes in regions: {us-  
east-1=java.util.concurrent.ExecutionException:  
java.util.NoSuchElementException}]

Apparently, this error has been reported (jgroups)  
[http://code.google.com/p/jclouds/issues/detail?id=270#c1](http://code.google.com/p/jclouds/issues/detail?id=270#c1). Any  
workaround ? anyone managed to start 0.8.0 with the cloud plugin on  
aws ?

Thanks in advance,

Erwan

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 10, 2010, 10:17am UTC](https://discuss.elastic.co/t/0-8-0-aws-cloud-discovery-failing-with-a-jgroups-related-exception/3004/2 "2010-06-10T10:17:15Z")

</div>

I am not aware of any workaround for this, I will look into this. For  
version 0.9, I hope to write native support for aws and hopefully rackspace.

-shay.banon

On Wed, Jun 9, 2010 at 11:20 AM, Erwan A. [earzur@gmail.com](mailto:earzur@gmail.com) wrote:

> Hello,
> 
> I'm trying to build a small, aws-based test cluster using the  
> following configuration:
> 
> cloud:  
> type: amazon  
> account: XXXXXXXXXXXXXXXXXXX  
> key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX  
> compute:  
> type: amazon  
> discovery:  
> type: cloud  
> gateway:  
> type: cloud  
> cloud:  
> container: elasticsearch-data
> 
> I get the following error when starting up elasticsearch (that's the  
> master, there is no other instance currently running it ...)
> 
> [07:46:02,194][INFO][node] [Bison]  
> {Elasticsearch/0.8.0}[13396]: Initializing ...  
> [07:46:02,216][INFO][plugins] [Bison] Loaded  
> [cloud]  
> [07:46:09,439][INFO][cloud.compute] [Bison] Connected to  
> ec2/xxxxxxxxxxxxxxxxxx compute service  
> [07:46:09,936][INFO][cloud.blobstore] [Bison] Connected to  
> s3/xxxxxxxxxxxxxxxxxx blob store service  
> [07:46:10,793][INFO][node] [Bison]  
> {Elasticsearch/0.8.0}[13396]: Initialized  
> [07:46:10,793][INFO][node] [Bison]  
> {Elasticsearch/0.8.0}[13396]: Starting ...  
> [07:46:10,883][INFO][transport] [Bison]  
> bound\_address[inet[/0:0:0:0:0:0:0:0:9300]], publish\_address[inet[/  
> 10.241.70.84:9300]]  
> [07:46:11,244][WARN]  
> [cloud.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata]  
> [Bison] no tag parsed from i-xxxxxxxx's groups: [Restricted]  
> \< lots of the same message about other instances we are running \>  
> [07:46:16,713][ERROR][jclouds.compute] [Bison] nodes,  
> completed: 3/4, errors: 1, rate: 1453ms/op  
> java.util.concurrent.ExecutionException:  
> java.util.NoSuchElementException  
> at java.util.concurrent.FutureTask  
> $Sync.innerGet(FutureTask.java:222)  
> at java.util.concurrent.FutureTask.get(FutureTask.java:83)  
> at
> 
> com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:  
> 60)  
> at org.jclouds.concurrent.ConcurrentUtils  
> $1.run(ConcurrentUtils.java:69)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:619)  
> Caused by: java.util.NoSuchElementException  
> at java.util.LinkedHashMap  
> $LinkedHashIterator.nextEntry(LinkedHashMap.java:374)  
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:  
> 383)  
> at  
> com.google.common.collect.Iterators.getOnlyElement(Iterators.java:271)  
> at  
> com.google.common.collect.Iterables.getOnlyElement(Iterables.java:206)  
> at
> 
> org.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata.getLoginAccountFor(RunningInstanceToNodeMetadata.java:  
> 270)  
> at
> 
> org.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata.getCredentialsForInstanceWithTag(RunningInstanceToNodeMetadata.java:  
> 181)  
> at
> 
> org.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata.apply(RunningInstanceToNodeMetadata.java:  
> 157)  
> at
> 
> org.jclouds.aws.ec2.compute.functions.RunningInstanceToNodeMetadata.apply(RunningInstanceToNodeMetadata.java:  
> 61)  
> at com.google.common.collect.Iterators$8.next(Iterators.java:  
> 730)  
> at com.google.common.collect.Iterators.addAll(Iterators.java:  
> 330)  
> at com.google.common.collect.Iterables.addAll(Iterables.java:  
> 249)  
> at  
> org.jclouds.aws.ec2.compute.config.EC2ComputeServiceContextModule  
> $EC2ListNodesStrategy$1.call(EC2ComputeServiceContextModule.java:206)  
> at  
> org.jclouds.aws.ec2.compute.config.EC2ComputeServiceContextModule  
> $EC2ListNodesStrategy$1.call(EC2ComputeServiceContextModule.java:203)  
> at java.util.concurrent.FutureTask  
> $Sync.innerRun(FutureTask.java:303)  
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)  
> ... 3 more  
> [07:46:16,714][ERROR][jclouds.compute] [Bison] nodes,  
> completed: 3/4, errors: 1, rate: 1454ms/op  
> java.lang.RuntimeException: nodes, completed: 3/4, errors: 1, rate:  
> 1454ms/op  
> at
> 
> org.jclouds.concurrent.ConcurrentUtils.awaitCompletion(ConcurrentUtils.java:  
> 87)  
> at  
> org.jclouds.aws.ec2.compute.config.EC2ComputeServiceContextModule
> 
> $EC2ListNodesStrategy.listDetailsOnNodesMatching(EC2ComputeServiceContextModule.java:  
> 213)  
> at  
> org.jclouds.aws.ec2.compute.config.EC2ComputeServiceContextModule  
> $EC2ListNodesStrategy.list(EC2ComputeServiceContextModule.java:191)  
> at
> 
> org.jclouds.compute.internal.BaseComputeService.listNodes(BaseComputeService.java:  
> 228)  
> at
> 
> org.elasticsearch.discovery.cloud.CloudZenPing.buildDynamicNodes(CloudZenPing.java:  
> 68)  
> at
> 
> org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.sendPings(UnicastZenPing.java:  
> 172)  
> at
> 
> org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.ping(UnicastZenPing.java:  
> 154)  
> at
> 
> org.elasticsearch.discovery.zen.ping.ZenPingService.ping(ZenPingService.java:  
> 130)  
> at
> 
> org.elasticsearch.discovery.zen.ping.ZenPingService.pingAndWait(ZenPingService.java:  
> 112)  
> at
> 
> org.elasticsearch.discovery.zen.ZenDiscovery.broadPingTillMasterResolved(ZenDiscovery.java:  
> 407)  
> at  
> org.elasticsearch.discovery.zen.ZenDiscovery.initialJoin(ZenDiscovery.java:  
> 226)  
> at  
> org.elasticsearch.discovery.zen.ZenDiscovery.doStart(ZenDiscovery.java:  
> 147)  
> at
> 
> org.elasticsearch.util.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:  
> 80)  
> at  
> org.elasticsearch.discovery.DiscoveryService.doStart(DiscoveryService.java:  
> 58)  
> at
> 
> org.elasticsearch.util.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:  
> 80)  
> at  
> org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:  
> 176)  
> at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:  
> 115)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:  
> 168)  
> [07:46:16,715][ERROR][bootstrap] [Bison]  
> {Elasticsearch/0.8.0}: Startup Failed ...
> 
> - RuntimeException[error parsing nodes in regions: {us-  
> east-1=java.util.concurrent.ExecutionException:  
> java.util.NoSuchElementException}]
> 
> Apparently, this error has been reported (jgroups)  
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/jclouds/issues/detail?id=270#c1). Any  
> workaround ? anyone managed to start 0.8.0 with the cloud plugin on  
> aws ?
> 
> Thanks in advance,
> 
> Erwan

---

<div class="post-metadata">

**Author:** ![Erwan\_Arzur\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erwan_arzur_2/32/3331_2.png) [@Erwan\_Arzur\_2](https://discuss.elastic.co/u/Erwan_Arzur_2)\
**Post date:** [June 10, 2010, 1:25pm UTC](https://discuss.elastic.co/t/0-8-0-aws-cloud-discovery-failing-with-a-jgroups-related-exception/3004/3 "2010-06-10T13:25:40Z")

</div>

2010/6/10 Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com):

> I am not aware of any workaround for this, I will look into this. For  
> version 0.9, I hope to write native support for aws and hopefully rackspace.  
> -shay.banon

Thanks, should I file a bug ?

Erwan

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 10, 2010, 7:37pm UTC](https://discuss.elastic.co/t/0-8-0-aws-cloud-discovery-failing-with-a-jgroups-related-exception/3004/4 "2010-06-10T19:37:09Z")

</div>

I am aware of this :), and it will definitely be fixed. I don't think there  
is a need to file a bug, its going to work differently in the future anyhow.

On Thu, Jun 10, 2010 at 4:25 PM, Erwan Arzur [erwan@arzur.net](mailto:erwan@arzur.net) wrote:

> 2010/6/10 Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com):
> 
> > I am not aware of any workaround for this, I will look into this. For  
> > version 0.9, I hope to write native support for aws and hopefully  
> > rackspace.  
> > -shay.banon
> 
> Thanks, should I file a bug ?
> 
> Erwan

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:23am UTC](https://discuss.elastic.co/t/0-8-0-aws-cloud-discovery-failing-with-a-jgroups-related-exception/3004/5 "2017-07-06T04:23:24Z")

</div>

Closed on July 6, 2017, 4:23am UTC


