Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
I think we are deviating from the point. The core issue still remains.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
I am now explicitly setting the clientmode as False in the java code. 

"You can use ExampleNodeStartup to start Ignite node from idea." 

--- this defeats the purpose of executing spark code across Ignite nodes. 






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
Yes i have recompiled, get the same error still. as told earlier i have
removed the explicit declaration for setclientmode.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj


Interesting.. I am not getting any logs in the Work directory. for the
server node.  
Intellij code is the only piece is run, so not sure why its starting the
client. 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
interesting.. I am not getting any logs in the Work directory. and this is
the only code which i execute, so not sure why its starting the client.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
log.txt   



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
I am not using both Code and Config.xml at the same time. I just shared to
demonstrate that either of the approaches do not work.

Step1 : First i try with the xml config. it didnt work
Step2 : then i tried via the code, it didnt work.

currently both my server and client nodes are not running.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
there are no other clients running, not even the server node. I have
specified the range  in the default-config.xml





127.0.0.1:47500..47509

Btw, thanks for the speedy response and appreciate your help.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
changing it to "false"  setClientMode(false) , still gives the same IP_FINDER 
error



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [TcpDiscoverySpi] Failed to connect to any address from IP finder

2018-07-19 Thread chetanj
@ezhuravlev

I am not starting the server node via ignite.bat. The main issue i am facing
is executing the Ignite in Intellij.

1. Do i have to start the server node separately [ignite.bat] . I am
currently executing Ignite from Intellij - Run Edit configuration with VM
parameters -> 


-DIGNITE_HOME= apache-ignite-fabric-2.6.0-bin >
-Djava.net.preferIPv4Stack=true

2.  TCP IP parameter is optional in the default-config.xml, but whether it
include or not, i am still getting the IP_FINDER error.

I included the entire in my code (thanks @WT) :
val igniteContext = new IgniteContext(sparkContext,
() =>{
  val tcpDiscoverySpi: TcpDiscoverySpi = new TcpDiscoverySpi
  val ipFinder: TcpDiscoveryVmIpFinder = new TcpDiscoveryVmIpFinder
  val addressList: java.util.List[String] = new
java.util.ArrayList[String]
  addressList.add("127.0.0.1:47500")
  ipFinder.setAddresses(addressList)
  tcpDiscoverySpi.setIpFinder(ipFinder)
  tcpDiscoverySpi.setLocalAddress("127.0.0.1")
  val igniteConf : IgniteConfiguration = new
 
IgniteConfiguration().setClientMode(true).setDiscoverySpi(tcpDiscoverySpi)
  igniteConf})

but still face the same error.

[16:27:41] Failed to connect to any address from IP finder (will retry to
join topology every 2000 ms; change 'reconnectDelay' to configure the
frequency of retries): [/127.0.0.1:47500]





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/