Hello Juili,

This exception might happen if KubernetesIPFinder cannot connect a
Kubernetes API server. It uses this address:
https://github.com/apache/ignite/blob/master/modules/kubernetes/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/kubernetes/TcpDiscoveryKubernetesIpFinder.java#L113

Ensure that the address is discoverable.

-
Denis


On Thu, Mar 12, 2020 at 1:37 AM Juili Bandgar <[email protected]>
wrote:

> Hello,
> While creating ignite cluster in Kubernetes (v1.16.3), I am getting below
> error multiple times:
>
>
> [06:54:35]    __________  ________________
> [06:54:35]   /  _/ ___/ |/ /  _/_  __/ __/
> [06:54:35]  _/ // (7 7    // /  / / / _/
> [06:54:35] /___/\___/_/|_/___/ /_/ /___/
> [06:54:35]
> [06:54:35] ver. 1.9.0#20170302-sha1:a8169d0a
> [06:54:35] 2017 Copyright(C) Apache Software Foundation
> [06:54:35]
> [06:54:35] Ignite documentation: http://ignite.apache.org
> [06:54:35]
> [06:54:35] Quiet mode.
> [06:54:35]   ^-- Logging to file
> '/opt/ignite/apache-ignite-fabric-1.9.0-bin/work/log/ignite-06ce7aa0.0.log'
> [06:54:35]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
> or "-v" to ignite.{sh|bat}
> [06:54:35]
> [06:54:35] OS: Linux 4.15.0-88-generic amd64
> [06:54:35] VM information: OpenJDK Runtime Environment
> 1.8.0_111-8u111-b14-2~bpo8+1-b14 Oracle Corporation OpenJDK 64-Bit Server
> VM
> 25.111-b14
> [06:54:35] Configured plugins:
> [06:54:35]   ^-- None
> [06:54:35]
> [06:54:35] Message queue limit is set to 0 which may lead to potential
> OOMEs
> when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to
> message queues growth on sender and receiver sides.
> [06:54:35] Security status [authentication=off, tls/ssl=off]
> [06:54:36] Performance suggestions for grid  (fix if possible)
> [06:54:36] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
> [06:54:36]   ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM
> options)
> [06:54:36]   ^-- Set max direct memory size if getting 'OOME: Direct buffer
> memory' (add '-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
> [06:54:36]   ^-- Disable processing of calls to System.gc() (add
> '-XX:+DisableExplicitGC' to JVM options)
> [06:54:36] Refer to this page for more performance suggestions:
> https://apacheignite.readme.io/docs/jvm-and-system-tuning
> [06:54:36]
> [06:54:36] To start Console Management & Monitoring run
> ignitevisorcmd.{sh|bat}
> [06:54:36]
> [06:54:36] Ignite node started OK (id=06ce7aa0)
> [06:54:36] Topology snapshot [ver=1, servers=1, clients=0, CPUs=6,
> heap=1.0GB]
>
> [06:56:36,589][SEVERE][tcp-disco-ip-finder-cleaner-#4%null%][TcpDiscoverySpi]
> Failed to clean IP finder up.
> class org.apache.ignite.spi.IgniteSpiException: Failed to retrieve Ignite
> pods IP addresses.
>         at
>
> org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder.getRegisteredAddresses(TcpDiscoveryKubernetesIpFinder.java:172)
>         at
>
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.registeredAddresses(TcpDiscoverySpi.java:1613)
>         at
>
> org.apache.ignite.spi.discovery.tcp.ServerImpl$IpFinderCleaner.cleanIpFinder(ServerImpl.java:1801)
>         at
>
> org.apache.ignite.spi.discovery.tcp.ServerImpl$IpFinderCleaner.body(ServerImpl.java:1776)
>         at
> org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> Caused by: java.net.ConnectException: Connection refused (Connection
> refused)
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at
> java.net
> .AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
>         at
> java.net
> .AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>         at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>         at java.net.Socket.connect(Socket.java:589)
>         at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
>         at
> sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
>         at
> sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
>         at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
>         at
>
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
>         at
>
> sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
>         at
>
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
>         at
>
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
>         at
>
> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
>         at
>
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
>         at
>
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
>         at
>
> org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder.getRegisteredAddresses(TcpDiscoveryKubernetesIpFinder.java:153)
>
>
>
>
> What are the reasons for the above problem? Please let me know the solution
> for it.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to