Ignite Web 代理中的连接错误
Connection Error in Ignite web agent
为了分析 Apache ignite 中的节点,我正在使用 [1] 中的监控工具:https://console.gridgain.com/。我尝试 运行 ignite-web-agent.sh 与上面 link 处的网络服务器建立连接,但我收到以下错误信息。我也尝试用机器的 IP 地址替换 localhost,但它仍然无法正常工作。 运行 ignite node 是否必须启动 ignite REST 服务器进行连接?如果是,那么如何通过 java 代码启用此 REST 服务器模式?
ignite-web-agent-1.7.2]$ . ignite-web-agent.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[12:58:13,881][INFO ][main][AgentLauncher] Starting Apache Ignite Web Console Agent...
Agent configuration:
User's security tokens : ****************Fq3q
URI to Ignite node REST server: http://localhost:8080
URI to Ignite Console server : https://console.gridgain.com:3002
Path to agent property file : default.properties
Path to JDBC drivers folder : /home/rishikesh/ignite-web-agent-1.7.2/jdbc-drivers
[12:58:14,318][INFO ][EventThread][AgentLauncher] Connecting to: https://console.gridgain.com:3002
[12:58:34,314][ERROR][EventThread][AgentLauncher] Connection error.
io.socket.client.SocketIOException: timeout
at io.socket.client.Manager.run(Manager.java:312)
at io.socket.thread.EventThread.run(EventThread.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[12:58:37,304][INFO ][EventThread][AgentLauncher] Connecting to: https://console.gridgain.com:3002
[12:58:53,744][ERROR][EventThread][AgentLauncher] Connection error.
io.socket.engineio.client.EngineIOException: xhr poll error
at io.socket.engineio.client.Transport.onError(Transport.java:64)
at io.socket.engineio.client.transports.PollingXHR.access0(PollingXHR.java:18)
at io.socket.engineio.client.transports.PollingXHR.run(PollingXHR.java:126)
at io.socket.thread.EventThread.run(EventThread.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.UnknownHostException: console.gridgain.com
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at sun.net.www.protocol.http.HttpURLConnection.run(HttpURLConnection.java:1890)
at sun.net.www.protocol.http.HttpURLConnection.run(HttpURLConnection.java:1885)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at io.socket.engineio.client.transports.PollingXHR$Request.run(PollingXHR.java:214)
... 1 more
Web 代理无法解析 console.gridgain.com
尝试在 /home/rishikesh/ignite-web-agent-1.7.2/default.properties 中更改 'URI to Ignite Console server' 请替换:
server-uri=https://console.gridgain.com:3002
至:
server-uri=https://104.197.2.239:3002
要启用 REST 模块,请在二进制分发中将 ignite-rest-http 文件夹从 lib/optional/ 移动到 lib/ 或将以下依赖项添加到您的 Maven 项目:
<dependency>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-rest-http/artifactId>
<version>${ignite.version}</version>
</dependency>
为了分析 Apache ignite 中的节点,我正在使用 [1] 中的监控工具:https://console.gridgain.com/。我尝试 运行 ignite-web-agent.sh 与上面 link 处的网络服务器建立连接,但我收到以下错误信息。我也尝试用机器的 IP 地址替换 localhost,但它仍然无法正常工作。 运行 ignite node 是否必须启动 ignite REST 服务器进行连接?如果是,那么如何通过 java 代码启用此 REST 服务器模式?
ignite-web-agent-1.7.2]$ . ignite-web-agent.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[12:58:13,881][INFO ][main][AgentLauncher] Starting Apache Ignite Web Console Agent...
Agent configuration:
User's security tokens : ****************Fq3q
URI to Ignite node REST server: http://localhost:8080
URI to Ignite Console server : https://console.gridgain.com:3002
Path to agent property file : default.properties
Path to JDBC drivers folder : /home/rishikesh/ignite-web-agent-1.7.2/jdbc-drivers
[12:58:14,318][INFO ][EventThread][AgentLauncher] Connecting to: https://console.gridgain.com:3002
[12:58:34,314][ERROR][EventThread][AgentLauncher] Connection error.
io.socket.client.SocketIOException: timeout
at io.socket.client.Manager.run(Manager.java:312)
at io.socket.thread.EventThread.run(EventThread.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[12:58:37,304][INFO ][EventThread][AgentLauncher] Connecting to: https://console.gridgain.com:3002
[12:58:53,744][ERROR][EventThread][AgentLauncher] Connection error.
io.socket.engineio.client.EngineIOException: xhr poll error
at io.socket.engineio.client.Transport.onError(Transport.java:64)
at io.socket.engineio.client.transports.PollingXHR.access0(PollingXHR.java:18)
at io.socket.engineio.client.transports.PollingXHR.run(PollingXHR.java:126)
at io.socket.thread.EventThread.run(EventThread.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.UnknownHostException: console.gridgain.com
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at sun.net.www.protocol.http.HttpURLConnection.run(HttpURLConnection.java:1890)
at sun.net.www.protocol.http.HttpURLConnection.run(HttpURLConnection.java:1885)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at io.socket.engineio.client.transports.PollingXHR$Request.run(PollingXHR.java:214)
... 1 more
Web 代理无法解析 console.gridgain.com 尝试在 /home/rishikesh/ignite-web-agent-1.7.2/default.properties 中更改 'URI to Ignite Console server' 请替换:
server-uri=https://console.gridgain.com:3002
至:
server-uri=https://104.197.2.239:3002
要启用 REST 模块,请在二进制分发中将 ignite-rest-http 文件夹从 lib/optional/ 移动到 lib/ 或将以下依赖项添加到您的 Maven 项目:
<dependency>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-rest-http/artifactId>
<version>${ignite.version}</version>
</dependency>