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 <[email protected]> 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 <[email protected] 
> <mailto:[email protected]>>:
> Hi , I have setup a Ignite cluster in google cloud following document : 
> https://apacheignite.readme.io/docs/google-cloud-deployment 
> <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 
> <http://apache-ignite-users.70518.x6.nabble.com/> at Nabble.com.


Reply via email to