# Elasticsearch at Google Cloud Engine

**URL:** <https://discuss.elastic.co/t/elasticsearch-at-google-cloud-engine/21730>\
**Category:** Elasticsearch\
**Created:** [January 20, 2015, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-at-google-cloud-engine/21730 "2015-01-20T11:52:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klausen\_Schaefersinh](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@Klausen\_Schaefersinh](https://discuss.elastic.co/u/Klausen_Schaefersinh)\
**Post date:** [January 20, 2015, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-at-google-cloud-engine/21730/1 "2015-01-20T11:52:25Z")

</div>

Hi,

I have just the "click to deploy" features to set up a small ElasticSearch  
cluster. That seems to have worked fine and I can connect to the cluster of  
rest. For instance "curl http://:9200" will return

{  
"status" : 200,  
"name" : "elasticsearch-8tqw",  
"cluster\_name" : "my\_elasticsearch-cluster",  
"version" : {...},  
"tagline" : "You Know, for Search"  
}

So I assume the cluster name is "my\_elasticsearch-cluster". However if I  
try to connect to the cluster using the java node client the client takes  
really long to join the cluster and if I try to perform a healt check, just  
to check if I am really connected I get the following exception:

org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
at  
org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$4.onTimeout(TransportMasterNodeOperationAction.java:164)  
at  
org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:239)  
at  
org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:497)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:745)

Why does this happen, and how can I solve it? Is there something not  
correctly configured in my network or should I use the transport client?

Thanks!

Klaus

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [January 20, 2015, 11:54am UTC](https://discuss.elastic.co/t/elasticsearch-at-google-cloud-engine/21730/2 "2015-01-20T11:54:01Z")

</div>

This requires port 9300 to be open on the cloud for you (UDP), and for your  
client code to set the cluster name correctly

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
[Lucene.NET](http://Lucene.NET) committer and PMC member

On Tue, Jan 20, 2015 at 1:52 PM, Klausen Schaefersinho \<  
[klaus.schaefers@gmail.com](mailto:klaus.schaefers@gmail.com)\> wrote:

> Hi,
> 
> I have just the "click to deploy" features to set up a small Elasticsearch  
> cluster. That seems to have worked fine and I can connect to the cluster of  
> rest. For instance "curl http://:9200" will return
> 
> {  
> "status" : 200,  
> "name" : "elasticsearch-8tqw",  
> "cluster\_name" : "my\_elasticsearch-cluster",  
> "version" : {...},  
> "tagline" : "You Know, for Search"  
> }
> 
> So I assume the cluster name is "my\_elasticsearch-cluster". However if I  
> try to connect to the cluster using the java node client the client takes  
> really long to join the cluster and if I try to perform a healt check, just  
> to check if I am really connected I get the following exception:
> 
> org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> at  
> org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$4.onTimeout(TransportMasterNodeOperationAction.java:164)  
> at  
> org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:239)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:497)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:745)
> 
> Why does this happen, and how can I solve it? Is there something not  
> correctly configured in my network or should I use the transport client?
> 
> Thanks!
> 
> Klaus
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsa5v%3DyW7QF2G03oTuSB0D\_mg\_CUyUGTdFBRmZSYcdvsA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsa5v%3DyW7QF2G03oTuSB0D_mg_CUyUGTdFBRmZSYcdvsA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Klausen\_Schaefersinh](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@Klausen\_Schaefersinh](https://discuss.elastic.co/u/Klausen_Schaefersinh)\
**Post date:** [January 20, 2015, 12:50pm UTC](https://discuss.elastic.co/t/elasticsearch-at-google-cloud-engine/21730/3 "2015-01-20T12:50:08Z")

</div>

Hi,

using the transport client solved my issue. It seems the server lookup does  
not work.

Cheers,

Klaus

On Tuesday, January 20, 2015 at 12:54:11 PM UTC+1, Itamar Syn-Hershko wrote:

> This requires port 9300 to be open on the cloud for you (UDP), and for  
> your client code to set the cluster name correctly
> 
> --
> 
> Itamar Syn-Hershko  
> [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> Freelance Developer & Consultant  
> [Lucene.NET](http://Lucene.NET) committer and PMC member
> 
> On Tue, Jan 20, 2015 at 1:52 PM, Klausen Schaefersinho \<  
> [klaus.s...@gmail.com](mailto:klaus.s...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > I have just the "click to deploy" features to set up a small  
> > Elasticsearch cluster. That seems to have worked fine and I can connect to  
> > the cluster of rest. For instance "curl http://:9200" will return
> > 
> > {  
> > "status" : 200,  
> > "name" : "elasticsearch-8tqw",  
> > "cluster\_name" : "my\_elasticsearch-cluster",  
> > "version" : {...},  
> > "tagline" : "You Know, for Search"  
> > }
> > 
> > So I assume the cluster name is "my\_elasticsearch-cluster". However if I  
> > try to connect to the cluster using the java node client the client takes  
> > really long to join the cluster and if I try to perform a healt check, just  
> > to check if I am really connected I get the following exception:
> > 
> > org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]  
> > at  
> > org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$4.onTimeout(TransportMasterNodeOperationAction.java:164)  
> > at  
> > org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:239)  
> > at  
> > org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:497)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > at java.lang.Thread.run(Thread.java:745)
> > 
> > Why does this happen, and how can I solve it? Is there something not  
> > correctly configured in my network or should I use the transport client?
> > 
> > Thanks!
> > 
> > Klaus
> > 
> > --  
> > 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](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bdc6e797-1656-4dfc-adda-794519a82eaf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e5f58eae-817b-45b3-8825-9a7ae4e76379%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e5f58eae-817b-45b3-8825-9a7ae4e76379%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:37am UTC](https://discuss.elastic.co/t/elasticsearch-at-google-cloud-engine/21730/4 "2017-07-06T00:37:46Z")

</div>


