简体   繁体   English

无法将 java 客户端应用程序连接到 windows 中的 dockerize ignite 服务器 10

[英]Unable to connect java client application to dockerize ignite server in windows 10

I have been able to successfully run apache ignite with custom config using the command我已经能够使用自定义配置成功运行 apache ignite 使用命令

docker run -it --net=host -v "pathToLocalDirectory"/config:/opt/ignite/apache-ignite/config -e "CONFIG_URI=file:///opt/ignite/apache-ignite/config/default-config.xml"  apacheignite/ignite.

But when I run my java project in IntelliJ I get the message但是当我在 IntelliJ 中运行我的 java 项目时,我收到了消息

"IP finder returned empty addresses list. Please check IP finder configuration and make sure multicast works on your network...". “IP 查找器返回空地址列表。请检查 IP 查找器配置并确保多播在您的网络上工作......”。

Note: the java client project works if I run the ignite server using windows batch file.注意:如果我使用 windows 批处理文件运行 ignite 服务器,则 java 客户端项目可以工作。 Also, I have published 47500 port as well.另外,我也发布了 47500 端口。 the result is the same.结果是一样的。

try running it using docker -run -it --net=host (don't mount the volumes).尝试使用 docker -run -it --net=host 运行它(不要挂载卷)。

If that doesn't work, it means that either something is incorrect w/your docker setup OR you are configuring discovery differently for clients and servers.如果这不起作用,则意味着您的 docker 设置不正确,或者您正在为客户端和服务器配置不同的发现。

check the IP addresses listed in your client discovery section.检查客户端发现部分中列出的 IP 地址。

ssh into the container and check what is actually mounted? ssh 进入容器并检查实际安装的是什么? run docker exec -it container-name /bin/bash运行 docker exec -it container-name /bin/bash

check: /opt/ignite/apache-ignite/config/default-config.xml is there and contains the correct discovery info.检查:/opt/ignite/apache-ignite/config/default-config.xml 是否存在并包含正确的发现信息。

Check that the ignite log (located in /opt/ignite/apache-ignite/work/log/) specifies that the correct config is being used.检查 ignite 日志(位于 /opt/ignite/apache-ignite/work/log/)是否指定正在使用正确的配置。 It will have a line like so: [INFO][main][IgniteKernal] Config URL: file:/opt/ignite/apache-ignite/config/default-config.xml它将有如下一行: [INFO][main][IgniteKernal] Config URL: file:/opt/ignite/apache-ignite/config/default-config.xml

If you don't see the mounted config file try mounting more simply.如果您没有看到已安装的配置文件,请尝试更简单地安装。

docker run -d -v /local/dir/config.xml:/config-file.xml -e CONFIG_URI=/config-file.xml apacheignite/ignite docker run -d -v /local/dir/config.xml:/config-file.xml -e CONFIG_URI=/config-file.xml apacheignite/ignite

more info: https://apacheignite.readme.io/docs/docker-deployment https://apacheignite.readme.io/docs/tcpip-discovery更多信息: https://apacheignite.readme.io/docs/docker-deployment https://apacheignite.readme.io/docs/tcpip-discovery

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何Dockerize Windows应用程序 - How to Dockerize windows application 在 java 中 Dockerize springboot 应用程序 - Dockerize springboot application in java dockerize Java 应用连接失败dockerize mysql 数据库 - Dockerize Java application connection failed to dockerize mysql database 无法连接到Windows 10中的Tensorflow Jupyter笔记本 - Unable to Connect to Tensorflow Jupyter Notebook in windows 10 在Linux Docker映像上运行的应用程序无法连接到本地Windows计算机上的SQL Server - Application running on Linux Docker image, is unable to connect to SQL server on local windows machine Docker for Desktop (Windows) 中的 Kubernetes 无法连接到服务器 - Kubernetes in Docker for Desktop (Windows) is unable to connect to the server 无法将Jenkins Windows 10从站连接到运行的Master - Unable to Connect Jenkins Windows 10 Slave to Master running 无法从Java应用程序连接到Postgres - Unable to connect to Postgres from java application 如何 Dockerize 依赖于 Maven 本地存储库的 Java 应用程序? - How to Dockerize a Java application that depends on Maven local repositories? 如何通过泊坞窗定制基于Apache Karaf服务器的应用程序? - How to dockerize customized Apache Karaf server based application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM