Failed to initialize connection (this can happen due to short time network
problems and can be ignored if does not 
affect node discovery)
[sock=Socket[addr=/10.133.71.210,port=32934,localport=47500]]
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:171)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
        at
org.apache.ignite.spi.discovery.tcp.ServerImpl$SocketReader.body(ServerImpl.java:5587)
        at
org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)


While I am trying to do telnet host port it gives the above error? I am also
unable to connect to this through client:

System.out.println("Test Ignite!!");
        String cacheId = "partitioned";
        TcpDiscoverySpi spi = new TcpDiscoverySpi();
        TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();
        TcpDiscoveryMulticastIpFinder tcMp = new
TcpDiscoveryMulticastIpFinder();
        tcMp.setAddresses(Arrays.asList("10.133.71.210",
"10.133.71.210:47500..47501"));
        spi.setIpFinder(tcMp);

       // final String
PATH="/Users/shamim/Development/java/datafabrics/apache-ignite-fabric-1.5.0.final-bin/examples/config/example-cache.xml";
        IgniteConfiguration cfg = new IgniteConfiguration();
        cfg.setClientMode(true);
        cfg.setDiscoverySpi(spi);
        // Start ignite
        Ignite ignite = Ignition.start(cfg);

        // get or create cache
        IgniteCache<Integer, String> cache =
ignite.getOrCreateCache("myCacheName");
        for(int i = 1; i < 100; i++){
            cache.put(i, Integer.toString(i));
        }
        for(int i =1; i<100;i++){
            System.out.println("Cache get:"+ cache.get(i));
        }
        // statistics
        System.out.println("Cache Size:"+
cache.metrics(ignite.cluster()).getSize());
        ignite.close();



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Connecting-to-remote-host-from-client-gives-error-tp14395p14474.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to