ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krzysztof <yaz...@gmail.com>
Subject Re: Ignite Cluster Communication with SSH Tunnels
Date Thu, 06 Oct 2016 23:33:50 GMT
I also added 48500 mappings, so discovery could use it, but both do not use
resolver for whatever reason - AddressResolver is only used for the client
address - none of cluster addresses gets mapped.

The only place resolver is called seems to be this one in TcpDiscoverySpi
or TcpCommunicationSpi:

<java>

 IgniteBiTuple<Collection<String>, Collection<String>> addrs = U.
*resolveLocalAddresses*(locHost);<java


            Collection<InetSocketAddress> extAddrs = addrRslvr == *null* ?
*null* :

                U.*resolveAddresses*(addrRslvr, F.*flat*(Arrays.*asList*(
addrs.get1(), addrs.get2())), boundTcpPort);
</java>

but these are only to resolve local addresses. So I think I am missing
something fundamental - I would think resolver purpose is to map addresses
from the cluster, which are behind the NAT/SSH tunnel.
What am I missing?


Log does not mention any problems with  port 47099:
<log>

01:21:39,674][INFO ][main][GridCacheProcessor] Started cache
[name=ignite-atomics-sys-cache, mode=PARTITIONED]

[01:21:39,690][INFO ][main][GridCacheProcessor] Started cache
[name=ignite-marshaller-sys-cache, mode=REPLICATED]

[01:21:42,540][WARN ][exchange-worker-#46%null%][TcpCommunicationSpi]
Connect timed out (consider increasing 'failureDetectionTimeout'
configuration property) [addr=/192.168.168.5:47100,
failureDetectionTimeout=15000]

[01:21:42,541][WARN ][exchange-worker-#46%null%][TcpCommunicationSpi]
Connect timed out (consider increasing 'failureDetectionTimeout'
configuration property) [addr=/127.0.0.1:47100,
failureDetectionTimeout=15000]

[01:21:42,541][WARN ][exchange-worker-#46%null%][TcpCommunicationSpi]
Failed to connect to a remote node (make sure that destination node is
alive and operating system firewall is disabled on local and remote hosts)
[addrs=[/192.168.168.5:47100, /127.0.0.1:47100, 0:0:0:0:0:0:0:1%lo:47100]]

[01:21:44,594][ERROR][exchange-worker-#46%null%][GridDhtAssignmentFetchFuture]
Failed to request affinity assignment from remote node (will continue to
another node): TcpDiscoveryNode [id=8148bc4e-6348-4a7a-95ed-14e403b9c615,
addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 192.168.168.5], sockAddrs=[/192.168.

168.5:48500, 0:0:0:0:0:0:0:1%lo:48500, /127.0.0.1:48500], discPort=48500,
order=1, intOrder=1, lastExchangeTime=1475796099172, loc=false,
ver=1.8.0#20161004-sha1:a370bad1, isClient=false]

class org.apache.ignite.IgniteCheckedException: Failed to send message
(node may have left the grid or TCP connection cannot be established due to
firewall issues) [node=TcpDiscoveryNode
[id=8148bc4e-6348-4a7a-95ed-14e403b9c615, addrs=[0:0:0:0:0:0:0:1%lo,
127.0.0.1, 192.168.168.5], sockAddrs=[/192.1

68.168.5:48500, 0:0:0:0:0:0:0:1%lo:48500, /127.0.0.1:48500],
discPort=48500, order=1, intOrder=1, lastExchangeTime=1475796099172,
loc=false, ver=1.8.0#20161004-sha1:a370bad1, isClient=false],
topic=TOPIC_CACHE, msg=GridDhtAffinityAssignmentRequest
[topVer=AffinityTopologyVersion [topVer=67, minorTop

Ver=0]], policy=4]

at
org.apache.ignite.internal.managers.communication.GridIoManager.send(GridIoManager.java:1309)

at
org.apache.ignite.internal.managers.communication.GridIoManager.send(GridIoManager.java:1373)

at
org.apache.ignite.internal.processors.cache.GridCacheIoManager.send(GridCacheIoManager.java:841)

at
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtAssignmentFetchFuture.requestFromNextNode(GridDhtAssignmentFetchFuture.java:185)

at
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtAssignmentFetchFuture.init(GridDhtAssignmentFetchFuture.java:107)

at
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.fetchAffinityOnJoin(CacheAffinitySharedManager.java:953)

at
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onClientEvent(CacheAffinitySharedManager.java:639)

at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onClientNodeEvent(GridDhtPartitionsExchangeFuture.java:619)

at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:464)

at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1447)

at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)

at java.lang.Thread.run(Thread.java:745)

Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to send
message to remote node: TcpDiscoveryNode
[id=8148bc4e-6348-4a7a-95ed-14e403b9c615, addrs=[0:0:0:0:0:0:0:1%lo,
127.0.0.1, 192.168.168.5], sockAddrs=[/192.168.168.5:48500,
0:0:0:0:0:0:0:1%lo:48500, /127.0.0.1:48500], discPort=48

500, order=1, intOrder=1, lastExchangeTime=1475796099172, loc=false,
ver=1.8.0#20161004-sha1:a370bad1, isClient=false]

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.sendMessage0(TcpCommunicationSpi.java:2013)

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.sendMessage(TcpCommunicationSpi.java:1951)

at
org.apache.ignite.internal.managers.communication.GridIoManager.send(GridIoManager.java:1304)

... 11 more

Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
connect to node (is node still alive?). Make sure that each ComputeTask and
cache Transaction has a timeout set in order to prevent parties from
waiting forever in case of network issues
[nodeId=8148bc4e-6348-4a7a-95ed-14e403b9c615

, addrs=[/192.168.168.5:47100, /127.0.0.1:47100, 0:0:0:0:0:0:0:1%lo:47100]]

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2519)

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createNioClient(TcpCommunicationSpi.java:2157)

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.reserveClient(TcpCommunicationSpi.java:2051)

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.sendMessage0(TcpCommunicationSpi.java:1985)

... 13 more

Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to
connect to address: /192.168.168.5:47100

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2521)

... 16 more

Caused by: java.net.ConnectException: Connection refused

at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)

at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)

at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:111)

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2380)

... 16 more

Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to
connect to address: /127.0.0.1:47100

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2521)

... 16 more

Caused by: java.net.ConnectException: Connection refused

at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)

at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)

at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:111)

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2380)

... 16 more

Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to
connect to address: 0:0:0:0:0:0:0:1%lo:47100

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2521)

... 16 more

Caused by: java.net.UnknownHostException

at sun.nio.ch.Net.translateException(Net.java:155)

at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:127)

at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2380)

... 16 more

[01:22:09,700][WARN ][main][GridCachePartitionExchangeManager] Failed to
wait for initial partition map exchange. Possible reasons are:

  ^-- Transactions in deadlock.

  ^-- Long running transactions (ignore if this is the case).

...
</log>

I would appreciate clarifying this..
Krzysztof

On Fri, Oct 7, 2016 at 12:58 AM, vkulichenko [via Apache Ignite Users] <
ml-node+s70518n8134h58@n6.nabble.com> wrote:

> You set 47099 as a communication port, but I don't see how it's mapped in
> the resolver. I think this is the reason.
>
> -Val
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/Ignite-
> Cluster-Communication-with-SSH-Tunnels-tp273p8134.html
> To unsubscribe from Ignite Cluster Communication with SSH Tunnels, click
> here
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=273&code=eWF6dW5hQGdtYWlsLmNvbXwyNzN8NjE2ODY4NTk3>
> .
> NAML
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Cluster-Communication-with-SSH-Tunnels-tp273p8135.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Mime
View raw message