Giter VIP home page Giter VIP logo

Comments (3)

mayaoguang avatar mayaoguang commented on September 24, 2024

请问是我的配置配的有问题么?

from easyml.

sinllychen avatar sinllychen commented on September 24, 2024

@mayaoguang
您好。关于您的问题:
1、请检查一下windows系统下是否能访问docker中的mysql。地址为:ubuntu地址:3306
2、您上述的错误原因为:
开发环境编译运行无法访问docker中的datanode。
关于这个问题,首先对于ubuntu来说,ubuntu主机能够访问docker中的hadoop-master(Docker自定义的虚拟地址:172.18.0.3)、hadoop-slave1(172.18.0.4)、hadoop-slave2(172.18.0.5)容器;对于windows系统来说,windows主机能够访问ubuntu。但是由于通过Eclipse或IDEA编译运行工程之后,相当于工程部署在windows系统的GWT Server上,任务的提交是通过windows系统进行提交即需要通过windows访问docker中的hdfs。目前的连接关系如下图所示:
(1)windows 能连接ubuntu
(2)ubuntu能连接Docker中的容器
(3)windows无法连接Docker中的容器(导致无法访问docker中的datanode)

architecture

目前的解决方案
1、上述开发机无法连接Docker Container的问题,我们目前还没有解决。您可以将EML工程通过maven编译、GWT编译之后打成war包,将war包拷贝到ubuntu系统中(建议用Eclipse进行打包,IDEA打包可能会有问题,具体请参考Eclipse搭建流程),再通过以下命令拷贝到docker的tomcat中进行部署访问:
docker cp 工程路径 hadoop-master:/usr/local/tomcat/webapps/

2、您也可以通过搭建Windows的docker环境,通过docker toolbox安装windows版本的docker,然后搭建虚拟集群,具体请参考Docker Toolbox安装流程。该toolbox的原理是将docker安装在virtual box的虚拟机上,docker的默认虚拟地址为192.168.99.100

这种方式也会存在无法访问docker datanode的问题,但是可以通过将Virtual Box虚拟机的网关以及windows 的网关改为192.168.99.100来解决。

目前我们也在努力解决开发机无法访问Docker容器中的datanode的问题,如果您有合适的解决方案也欢迎一起讨论。

from easyml.

sinllychen avatar sinllychen commented on September 24, 2024

@mayaoguang
您好,您遇到的问题,我们已经解决,具体可参考https://github.com/ICT-BDA/EasyML/wiki/Summary-About-EasyML-Install-Common-Problems 关于IDE部分遇到问题的解决方案。

如您嫌麻烦,也可更新我们网盘中的安装包,我们今天会更新一个新版本解决上述问题。如有任何问题,欢迎向我们反馈,多谢!

from easyml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.