[英]scan-and-scroll doesn't work from Docker with a ElasticSearch cluster placed outside
Currently I use Docker with an ElasticSearch cluster, which is placed outside the container. 当前,我将Docker与ElasticSearch集群一起使用,该集群位于容器外部。 From my docker I manage to create a mapping (so my ip it's good), and I manage to launch simple request in python language. 从我的泊坞窗中,我设法创建了一个映射(因此我的IP很好),并且设法以python语言启动了简单的请求。
def getBodyOfRoot(self, id):
res = self.es.get(index=self.ES_Index, doc_type=self.ES_Type, id=id)
return res['_source']
this example works well in my host AND in Docker. 这个例子在我的主机和Docker中都很好用。
But when I launch my scan-and-scroll from Docker, I don't get a response, but from my native OS, I get a response. 但是,当我从Docker启动扫描滚动时,我没有得到响应,但是从本机OS中得到了响应。
If you have already met this problem, how did you manage to solve it ? 如果您已经遇到了这个问题,那么您如何解决呢?
Thanks in advance. 提前致谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.