You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Ilya Kasnacheev <il...@gmail.com> on 2020/04/02 14:47:07 UTC
Re: Failed to bind to any [host:port] from the range portFrom=10900 , portTo=11000
Hello!
ClientConnectorConfiguration is needed to allow other clients to connect to
local node, and not for connecting to remote nodes.
ClientConfiguration/startClient() should be used instead.
Regards,
--
Ilya Kasnacheev
пт, 20 мар. 2020 г. в 07:23, AravindJP <ar...@gmail.com>:
> 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
> <http://apache-ignite-users.70518.x6.nabble.com/> at Nabble.com.
>