title: org.apache.ignite : Failed to connect to cluster, connection failed and failed to reconnect
body: <p>I am using spark to integrate ignite query data. The program does not start long before the following error occurs. I check the status of ignite, the service node is present.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>import org.apache.ignite.spark._
  import org.apache.ignite.configuration._
  import org.apache.ignite.Ignite
  import org.apache.ignite.IgniteCache
  import org.apache.ignite.Ignition
  import org.apache.ignite.scalar.scalar
  import org.apache.ignite.scalar.scalar._
  
  
  // val ic = new IgniteContext(sc, () =&gt; new IgniteConfiguration())
  val ic = new IgniteContext(sc,"/data/dk/jar/config/default-config.xml")
  
   val recordCache = ic.ignite.cache[String, AttendRecord]("ATTEND_RECORD_TL")
      var retSet : scala.collection.mutable.Buffer[java.sql.Timestamp] = null
      if(operateTimeSite != null) {
         retSet = recordCache.sql("punchSiteId = ? and operateTime &lt;= ? and operateTime &gt;= ? order by operateTime desc limit 1",punchSiteId, compueteTcTime,operateTimeSite).getAll.map(_.getValue.operateTime) 
      }  else {
         retSet = recordCache.sql("punchSiteId = ? and operateTime &lt;= ?  order by operateTime desc limit 1",punchSiteId, compueteTcTime).getAll.map(_.getValue.operateTime) 
      }
      if(retSet == null || retSet.isEmpty) { 
          if(operateTimeSite !=null) 
              retSet = recordCache.sql("punchSiteId = ? and operateTime &gt;= ?  order by operateTime limit 1",punchSiteId, new Timestamp(operateTimeSite.getTime - 4*3600*1000)).getAll.map(_.getValue.operateTime) 
          else null  
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start manager: GridManagerAdapter [enabled=true, name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]
          at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1791)
          at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:978)
          at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1896)
          at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1648)
          at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1076)
          at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:596)
          at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:536)
          at org.apache.ignite.Ignition.getOrStart(Ignition.java:414)
          ... 37 more
  Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start SPI: TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000, marsh=JdkMarshaller [], reconCnt=10, maxAckTimeout=600000, forceSrvMode=false, clientReconnectDisabled=false]
          at org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:300)
          at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:842)
          at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1786)
          ... 44 more
  Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to connect to cluster, connection failed and failed to reconnect.
          at org.apache.ignite.spi.discovery.tcp.ClientImpl$Reconnector.body(ClientImpl.java:1490)
          at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)</code></pre>
  </div>
  </div>
  </p>