erreur:httpconnectionpool(host =' dnode2',port = 9864):用url: /webhdfs超过了最大检索

发布于 2025-01-21 16:18:47 字数 417 浏览 1 评论 0原文

我正在尝试在与Docker一起部署的Python应用程序中的HDFS服务器上读取文件,在DEV期间,我没有任何问题,但是在prod中,有一个错误:

erreur:httpconnectionpool(host ='dnode2',port = 9864):最大重试 超过URL: /webhdfs/v1/?op = open& namenoderpcaddress = namenode:9000& offset = 0 (由newConnectionError('< urllib3.connection.httpConnection引起 对象在0x7f1af13d45d0>:无法建立新连接: [errno -2]名称或服务不知道')

请注意,我使用地址IP而不是“ dnode2”名称,也不使用该端口!

I'm trying to read a file on my hdfs server in my python app deployed with docker, during dev, I don't have any problem, but in prod there are this error :

Erreur: HTTPConnectionPool(host='dnode2', port=9864): Max retries
exceeded with url:
/webhdfs/v1/?op=OPEN&namenoderpcaddress=namenode:9000&offset=0
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection
object at 0x7f1af13d45d0>: Failed to establish a new connection:
[Errno -2] Name or service not known'))

Note that I use an address IP not that "dnode2" name and neither use that port!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

画中仙 2025-01-28 16:18:47

抱歉,但这只是我需要在我的 /etc /hosts中添加静态映射,这是工作的!

Sorry, but It was just that I needed to add a static mapping in my /etc/hosts and it's work!!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文