# How Can I configure for another ES cluster?

**URL:** <https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315>\
**Category:** Elasticsearch\
**Created:** [October 5, 2016, 10:23pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315 "2016-10-05T22:23:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allie\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allie_yang/32/16538_2.png) [@Allie\_Yang](https://discuss.elastic.co/u/Allie_Yang)\
**Post date:** [October 5, 2016, 10:23pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/1 "2016-10-05T22:23:01Z")

</div>

I am trying to use the data from another totally different ES cluster through Kibana.  
I already changed Kibana URL in its yml. For ES, how should I configure it to not go to the default 127.0.01?

Below is my current ES yml with new port/host. What else shall I do to make it listen to new port/host?

# ---------------------------------- Network -----------------------------------

# 

# Set the bind address to a specific IP (IPv4 or IPv6):

# 

# network.host: 192.168.0.194

# 

# Set a custom port for HTTP:

# 

# http.port: 9300

# 

# For more information, see the documentation at:

# [http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html](http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html)

# 

# --------------------------------- Discovery ----------------------------------

# 

# Pass an initial list of hosts to perform discovery when new node is started:

# The default list of hosts is ["192.168.0.194"]

# 

# discovery.zen.ping.unicast.hosts: ["192.168.0.238","192.168.0.237","192.168.0.208","192.168.0.181"]

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 5, 2016, 11:14pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/2 "2016-10-05T23:14:52Z")

</div>

> [@Allie\_Yang](#):
>
> how should I configure it to not go to the default 127.0.01?

You already have;

> [@Allie\_Yang](#):
>
> network.host: 192.168.0.194

---

<div class="post-metadata">

**Author:** ![Allie\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allie_yang/32/16538_2.png) [@Allie\_Yang](https://discuss.elastic.co/u/Allie_Yang)\
**Post date:** [October 5, 2016, 11:20pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/3 "2016-10-05T23:20:45Z")

</div>

I keep see below error:

Exception in thread "main" BindTransportException[Failed to bind to [9300-9400]]; **nested: ChannelException[Failed to bind to: /192.168.0.194:9400]; nested: BindException[Can't assign requested address];**  
**Likely root cause: java.net.BindException: Can't assign requested address**  
at sun.nio.ch.Net.bind0(Native Method)  
at sun.nio.ch.Net.bind(Net.java:433)  
at sun.nio.ch.Net.bind(Net.java:425)  
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)  
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)  
at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)  
at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)  
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 5, 2016, 11:21pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/4 "2016-10-05T23:21:36Z")

</div>

> [@Allie\_Yang](#):
>
> http.port: 9300

Why did you change this? You should leave it at 9200.

---

<div class="post-metadata">

**Author:** ![Allie\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allie_yang/32/16538_2.png) [@Allie\_Yang](https://discuss.elastic.co/u/Allie_Yang)\
**Post date:** [October 5, 2016, 11:23pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/5 "2016-10-05T23:23:36Z")

</div>

Changed it back to 9200 but still the same error...

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 5, 2016, 11:24pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/6 "2016-10-05T23:24:24Z")

</div>

Does that address exist on the host?

---

<div class="post-metadata">

**Author:** ![Allie\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allie_yang/32/16538_2.png) [@Allie\_Yang](https://discuss.elastic.co/u/Allie_Yang)\
**Post date:** [October 5, 2016, 11:27pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/7 "2016-10-05T23:27:55Z")

</div>

I retrieved from below when i do: curl {server address}/\_nodes/\_local.  
I can choose any address from unicast, right?

**curl [https://rd-search.ew1.dev.aws.adobestock.com/\_nodes/\_local](https://rd-search.ew1.dev.aws.adobestock.com/_nodes/_local)**  
{"cluster\_name":"elasticsearch-stock-aws","nodes":{"wdFkfeoeT7KHwM\_I08Bweg":{"name":"aws-elasticsearch-2","**transport\_address":"inet[ip-192-168-0-208.eu-west-1.compute.internal/192.168.0.208:9300]**","host":"ip-192-168-0-208","ip":"192.168.0.208","version":"1.7.5","build":"00f95f4","http\_address":"inet[/192.168.0.208:8080]","attributes":{"master":"true"},"settings":{"cluster":{"name":"elasticsearch-stock-aws"},"index":{"search":{"slowlog":{"threshold":{"query":{"warn":"10s","trace":"500ms","debug":"2s","info":"5s"},"fetch":{"warn":"1s","trace":"200ms","debug":"500ms","info":"800ms"}}}},"indexing":{"slowlog":{"threshold":{"index":{"warn":"10s","trace":"500ms","debug":"2s","info":"5s"}}}},"number\_of\_shards":"32","number\_of\_replicas":"2","similarity":{"default":{"type":"custom\_fotolia"}}},"foreground":"yes","transport":{"tcp":{"compress":"true"}},"pqcode\_plugin":{"encoder\_blob\_path":"config/pq-encoder/stock2.encoder"},"bootstrap":{"mlockall":"true"},"threadpool":{"bulk":{"queue\_size":"1000"}},"cloud":{"aws":{"region":"eu-west-1"}},"path":{"conf":"/etc/elasticsearch/elasticsearch.yml","data":"/mnt/","logs":"/mnt/elastic\_logs","work":"/mnt/","home":"/usr/share/elasticsearch"},"node":{"data":"true","name":"aws-elasticsearch-2","master":"true"},"plugin":{"mandatory":"cloud-aws"},"discovery":{"type":"ec2","ec2":{"groups":"elasticsearch"},"zen":{"ping":{"multicast":{"enabled":"false"},"**unicast":{"hosts":["192.168.0.238","192.168.0.237","192.168.0.194","192.168.0.181"]}}}}**,"name":"aws-elasticsearch-2","http":{"compression":"true","port":"8080","cors":{"enabled":"true","allow-origin":"\*"}},"client":{"type":"node"},"config":{"ignore\_system\_properties":"true"}},"os":{"refresh\_interval\_in\_millis":1000,"available\_processors":8,"cpu":{"vendor":"Intel","model":"Xeon","mhz":2400,"total\_cores":8,"total\_sockets":1,"cores\_per\_socket":8,"cache\_size\_in\_bytes":30720},"mem":{"total\_in\_bytes":33738887168},"swap":{"total\_in\_bytes":0}},"process":{"refresh\_interval\_in\_millis":1000,"id":1331,"max\_file\_descriptors":64000,"mlockall":true},"jam"...

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 5, 2016, 11:29pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/8 "2016-10-05T23:29:21Z")

</div>

> [@Allie\_Yang](#):
>
> I can choose any address from unicast, right

Are those IPs bound to the host you are trying to start ES on?

---

<div class="post-metadata">

**Author:** ![Allie\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allie_yang/32/16538_2.png) [@Allie\_Yang](https://discuss.elastic.co/u/Allie_Yang)\
**Post date:** [October 5, 2016, 11:30pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/9 "2016-10-05T23:30:23Z")

</div>

right.  
The server address there (I curled with) is the new ES server i try to get on.

Could it be the ES server is already on so it prevents duplicate start?

---

<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 5, 2017, 10:14pm UTC](https://discuss.elastic.co/t/how-can-i-configure-for-another-es-cluster/62315/10 "2017-07-05T22:14:34Z")

</div>


