沙师弟,师父的充电器掉了

es hadoop 使用代理连接es服务

Elasticsearch | 作者 seewei | 发布于2016年09月19日 | 阅读数:5305

我的es服务是亚马逊的elasticsearch服务,配置下就可以生成es集群,这个集群在国外,而我的hadoop的集群在国内,想通过代理让mapreduce连接国外的es集群。
 
配置如下:
conf.set("es.net.proxy.http.host", "xx.xx.xx.xx");
conf.set("es.net.proxy.http.port", "8989");
conf.set("es.net.proxy.http.user", "anonymous");
conf.set("es.net.proxy.http.pass", "passwd");
conf.set("es.net.proxy.http.use.system.props", "no");
 
在hadoop的某个节点上,使用telnet是可以访问代理的,但是mr程序运行起来之后,失败,提示connect error
已邀请:

要回复问题请先登录注册