erreur:httpconnectionpool(host =' dnode2',port = 9864):用url: /webhdfs超过了最大检索
我正在尝试在与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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉,但这只是我需要在我的 /etc /hosts中添加静态映射,这是工作的!
Sorry, but It was just that I needed to add a static mapping in my /etc/hosts and it's work!!