[英]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.