Hi I have a problems making R to work with Elasticsearch via ssh tunnelling on CentOS 7. SSH tunnel is already setup via putty.
I have installed Rstudio and R (server). I connect to Elasticsearch:
connect(es_host = "<host_address>",es_port = "9200",es_path = "")
When I try to use ping(), I get following error:
ping()
Error: lexical error: invalid char in json text.
<!DOCTYPE HTML PUBLIC "-//W3C//
(right here) ------^
Is it problem with connection, elasticsearch, incompatibility...?
- Proxy is set up in Renviron.site file as:
http_proxy = <http_address>:
http_proxy_user=user:pass
https_proxy = <http_address>:
https_proxy_user=user:pass
-
R version: 3.4.1 Rstudio version: 1.0.44
-
Elasticsearch version: 2.3.3
I will appreciate any advice. Thanks,
Leon