【发布时间】:2016-11-14 08:46:57
【问题描述】:
我使用elastic 0.7.8 R 包连接到我的Elastic Search 实例。
最近,我尝试使用 Search Guard 2 来保护 Elastic Search。
保护后一切正常。 但是当我尝试从 R 连接时,它失败了。
library(elastic)
connect(es_base = "https://localhost", es_port = 9200, es_user = USER, es_pwd = PASS)
日志中的错误是“Client requested protocal TLSv1 not enabled or not supported”
我尝试使用 cURL 连接到 Elastic Search,如下所示:
- curl -k --tlsv1.1 -u USER:PASS https://localhost:9200(有效)
- curl -k --tlsv1.0 -u USER:PASS https://localhost:9200(失败)
我无法弄清楚如何强制 R 使用 TLSv1.1。
请帮忙。
以下是版本:
- R : 3.3.1
- 弹性搜索:2.4.1
- GCC:4.9.2
- 操作系统:RHEL 6.7
- Openssl:1.0.1.e-fips 2013 年 2 月 11 日
【问题讨论】:
-
我认为您拼错了
elasic并且您没有包含用于连接的 R 代码。 -
谢谢@hrbrmstr。我已经更正了。
-
elastic的哪个版本?并链接到 Search Guard ?我对此并不熟悉。 -
@sckott 我已经更新了版本。我也接受了解决方案。
标签: r elasticsearch configuration openssl ropensci