Failed to bind to any [host:port] from the range portFrom=10900 , portTo=11000

classic Classic list List threaded Threaded
5 messages Options
AravindJP AravindJP
Reply | Threaded
Open this post in threaded view
|

Failed to bind to any [host:port] from the range portFrom=10900 , portTo=11000

This post was updated on .
Hi , I have setup a Ignite cluster in google cloud following document : https://apacheignite.readme.io/docs/google-cloud-deployment. My Ignite client code which connects to 10800 works fine .

 ie //THIS WORKS
!!ClientConfiguration ccfg = new
ClientConfiguration().setAddresses("xx.xx.xx.xx:10800");IgniteClient
igniteClient = Ignition.startClient(ccfg);ClientCache<String, Address>
clientcache =
igniteClient.getOrCreateCache(CACHE_NAME);
clientcache.put(key,address);
clientcache.get(key)

But when i tried to connect as a client node , it doesn't work at all ! Can someone tell me what could be the reason ?
//tried 10800 and 10900
ClientConnectorConfiguration cfg=new ClientConnectorConfiguration() .setHost("xx.xx.xx.xx") .setPort(10900); IgniteConfiguration ignitecfg =new IgniteConfiguration(); ignitecfg.setClientConnectorConfiguration(cfg); IgniteDataStreamer<String,Address> dataSteamer=ignite.dataStreamer("put-get-example"); Address val = new Address("sample address", 94612);
Integer key = 1; dataSteamer.addData(key, val);

fails to run with below exception  org.apache.ignite.IgniteCheckedException: Failed to start processor:
GridProcessorAdapter []	at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1981)
~[ignite-core-2.8.0.jar:2.8.0]	at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1213)
~[ignite-core-2.8.0.jar:2.8.0]	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2038)
[ignite-core-2.8.0.jar:2.8.0]	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1703)
[ignite-core-2.8.0.jar:2.8.0]	at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1117)
[ignite-core-2.8.0.jar:2.8.0]	at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:637)
[ignite-core-2.8.0.jar:2.8.0]	at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:563)
[ignite-core-2.8.0.jar:2.8.0]	at
org.apache.ignite.Ignition.start(Ignition.java:321)
[ignite-core-2.8.0.jar:2.8.0]	at
com.mainad.userlistignitesetup.UserListIgniteSetupApplication.main(UserListIgniteSetupApplication.java:50)
[classes/:na]Caused by: org.apache.ignite.IgniteCheckedException: Failed to
start client connector processor.	at
org.apache.ignite.internal.processors.odbc.ClientListenerProcessor.start(ClientListenerProcessor.java:209)
~[ignite-core-2.8.0.jar:2.8.0]	at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1978)
~[ignite-core-2.8.0.jar:2.8.0]	... 8 common frames omittedCaused by:
org.apache.ignite.IgniteCheckedException: Failed to bind to any [host:port]
from the range [host=xx.xx.xx.xx, portFrom=10900, portTo=11000,
lastErr=class org.apache.ignite.IgniteCheckedException: Failed to initialize
NIO selector.]	at
org.apache.ignite.internal.processors.odbc.ClientListenerProcessor.start(ClientListenerProcessor.java:197)
~[ignite-core-2.8.0.jar:2.8.0]	... 9 common frames omitted

-- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Failed to bind to any [host:port] from the range portFrom=10900 , portTo=11000

Hello!

Is it possible that you have specified incorrect address in your ClientConnectorConfiguration? If host is not local then it wouldn't be able to bind to any ports.

Regards,
--
Ilya Kasnacheev


ср, 18 мар. 2020 г. в 15:23, AravindJP <[hidden email]>:
Hi , I have setup a Ignite cluster in google cloud following document : https://apacheignite.readme.io/docs/google-cloud-deployment. My Ignite client code which connects to 10800 works fine . ie //THIS WORKS !! ClientConfiguration ccfg = new ClientConfiguration().setAddresses("xx.xx.xx.xx:10800"); IgniteClient igniteClient = Ignition.startClient(ccfg); ClientCache<String, Address> clientcache = igniteClient.getOrCreateCache(CACHE_NAME); clientcache.put(key,address); clientcache.get(key) But when i tried to connect as a client node , it doesn't work at all ! Can someone tell me what could be the reason ? //tried 10800 and 10900 ClientConnectorConfiguration cfg=new ClientConnectorConfiguration() .setHost("xx.xx.xx.xx") .setPort(10900); IgniteConfiguration ignitecfg = new IgniteConfiguration(); ignitecfg.setClientConnectorConfiguration(cfg); IgniteDataStreamer<String,Address> dataSteamer=ignite.dataStreamer("put-get-example"); Address val = new Address("sample address", 94612); Integer key = 1; dataSteamer.addData(key, val); fails to run with below exception org.apache.ignite.IgniteCheckedException: Failed to start processor: GridProcessorAdapter [] at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1981) ~[ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1213) ~[ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2038) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1703) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1117) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:637) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:563) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.Ignition.start(Ignition.java:321) [ignite-core-2.8.0.jar:2.8.0] at com.mainad.userlistignitesetup.UserListIgniteSetupApplication.main(UserListIgniteSetupApplication.java:50) [classes/:na] Caused by: org.apache.ignite.IgniteCheckedException: Failed to start client connector processor. at org.apache.ignite.internal.processors.odbc.ClientListenerProcessor.start(ClientListenerProcessor.java:209) ~[ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1978) ~[ignite-core-2.8.0.jar:2.8.0] ... 8 common frames omitted Caused by: org.apache.ignite.IgniteCheckedException: Failed to bind to any [host:port] from the range [host=xx.xx.xx.xx, portFrom=10900, portTo=11000, lastErr=class org.apache.ignite.IgniteCheckedException: Failed to initialize NIO selector.] at org.apache.ignite.internal.processors.odbc.ClientListenerProcessor.start(ClientListenerProcessor.java:197) ~[ignite-core-2.8.0.jar:2.8.0] ... 9 common frames omitted

Sent from the Apache Ignite Users mailing list archive at Nabble.com.
stephendarlington stephendarlington
Reply | Threaded
Open this post in threaded view
|

Re: Failed to bind to any [host:port] from the range portFrom=10900 , portTo=11000

In the first example you’re using the thin-client (which connects to port 10800 by default).

In the second you’re using IgniteDataStreamer, which is only available in the thick-client (IIRC), so I’m not sure how your sample would compile much less run. To use a thick-client, you need to use IgniteConfiguration (or the Spring XML file) rather than ClientConfiguration. The default port for discovery is 47500.

Regards,
Stephen

On 19 Mar 2020, at 11:27, Ilya Kasnacheev <[hidden email]> wrote:

Hello!

Is it possible that you have specified incorrect address in your ClientConnectorConfiguration? If host is not local then it wouldn't be able to bind to any ports.

Regards,
--
Ilya Kasnacheev


ср, 18 мар. 2020 г. в 15:23, AravindJP <[hidden email]>:
Hi , I have setup a Ignite cluster in google cloud following document : https://apacheignite.readme.io/docs/google-cloud-deployment. My Ignite client code which connects to 10800 works fine . ie //THIS WORKS !! ClientConfiguration ccfg = new ClientConfiguration().setAddresses("xx.xx.xx.xx:10800"); IgniteClient igniteClient = Ignition.startClient(ccfg); ClientCache<String, Address> clientcache = igniteClient.getOrCreateCache(CACHE_NAME); clientcache.put(key,address); clientcache.get(key) But when i tried to connect as a client node , it doesn't work at all ! Can someone tell me what could be the reason ? //tried 10800 and 10900 ClientConnectorConfiguration cfg=new ClientConnectorConfiguration() .setHost("xx.xx.xx.xx") .setPort(10900); IgniteConfiguration ignitecfg = new IgniteConfiguration(); ignitecfg.setClientConnectorConfiguration(cfg); IgniteDataStreamer<String,Address> dataSteamer=ignite.dataStreamer("put-get-example"); Address val = new Address("sample address", 94612); Integer key = 1; dataSteamer.addData(key, val); fails to run with below exception org.apache.ignite.IgniteCheckedException: Failed to start processor: GridProcessorAdapter [] at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1981) ~[ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1213) ~[ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2038) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1703) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1117) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:637) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:563) [ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.Ignition.start(Ignition.java:321) [ignite-core-2.8.0.jar:2.8.0] at com.mainad.userlistignitesetup.UserListIgniteSetupApplication.main(UserListIgniteSetupApplication.java:50) [classes/:na] Caused by: org.apache.ignite.IgniteCheckedException: Failed to start client connector processor. at org.apache.ignite.internal.processors.odbc.ClientListenerProcessor.start(ClientListenerProcessor.java:209) ~[ignite-core-2.8.0.jar:2.8.0] at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1978) ~[ignite-core-2.8.0.jar:2.8.0] ... 8 common frames omitted Caused by: org.apache.ignite.IgniteCheckedException: Failed to bind to any [host:port] from the range [host=xx.xx.xx.xx, portFrom=10900, portTo=11000, lastErr=class org.apache.ignite.IgniteCheckedException: Failed to initialize NIO selector.] at org.apache.ignite.internal.processors.odbc.ClientListenerProcessor.start(ClientListenerProcessor.java:197) ~[ignite-core-2.8.0.jar:2.8.0] ... 9 common frames omitted

Sent from the Apache Ignite Users mailing list archive at Nabble.com.


AravindJP AravindJP
Reply | Threaded
Open this post in threaded view
|

Re: Failed to bind to any [host:port] from the range portFrom=10900 , portTo=11000

Hi Stephen, 
 i was using IgniteConfiguration to connect , please find below the full code

Ignition.setClientMode(true); ClientConnectorConfiguration cfg=new ClientConnectorConfiguration() .setHost("xx.xx.xx.xx") .setPort(47500); IgniteConfiguration ignitecfg = new IgniteConfiguration(); ignitecfg.setClientConnectorConfiguration(cfg); Ignite ignite =Ignition.start(ignitecfg); final String CACHE_NAME = "put-get-example"; IgniteDataStreamer<String,Address> dataSteamer=ignite.dataStreamer("put-get-example"); Address val = new Address("1545 Sample 1", 94612); Integer key = 1; for (int i = 0; i < 100; i++) { val = new Address("1545 Jackson Street "+i, 94612); dataSteamer.addData("i"+i, val); }


Sent from the Apache Ignite Users mailing list archive at Nabble.com.
AravindJP AravindJP
Reply | Threaded
Open this post in threaded view
|

Re: Failed to bind to any [host:port] from the range portFrom=10900 , portTo=11000

In reply to this post by ilya.kasnacheev
In this case , i am trying to connect to a kubernetes cluster remotely . Using same IP , i am successfully able to put and get data via 10800


Sent from the Apache Ignite Users mailing list archive at Nabble.com.