How to connect with elastic search using presto when elasticsearch run on remote server
See original GitHub issueI have created the elastic search mapping json file with the following details
{
"tableName": "test",
"schemaName": "es",
"host": "XX.XXX.XX.XXX",
"port": 1234,
"clusterName": "elasticsearch",
"index": "test",
"type": "user",
"columns": [{
"name": "GENDER",
"type": "varchar",
"jsonPath": "GENDER",
"jsonType": "varchar",
"ordinaryPosition": "0"
},
{
"name": "NAME",
"type": "varchar",
"jsonPath": "NAME",
"jsonType": "varchar",
"ordinaryPosition": "1"
},
{
"name": "price",
"type": "varchar",
"jsonPath": "price",
"jsonType": "varchar",
"ordinaryPosition": "2"
}
]
}
I have updated some values in elasticsearch.yml file
cluster.name: elasticsearch
node.name: elasticsearch-node-1
transport.tcp.port: 1234
network.host: [localhost,127.0.0.1]
http.port: 9200
My elastic search run successfully on http://XX.XXX.XX.XXX:9200 but when we hit to elasticsearch using presto to fetch the data from particular index, it has given the following error:
java.lang.RuntimeException: NoNodeAvailableException[None of the configured nodes are available
please advice.
Issue Analytics
- State:
- Created 4 years ago
- Comments:25 (3 by maintainers)
Top Results From Across the Web
Presto Meets Elasticsearch - YouTube
Elasticsearch is a real-time search and analytics engine, and it is the core product behind the well-known Elastic Stack.
Read more >Elasticsearch Connector — Presto 0.278 Documentation
This document describes how to setup the Elasticsearch Connector to run SQL queries against Elasticsearch. Note. Elasticsearch 6.0.0 or ...
Read more >Introducing our High-Performance Elasticsearch Connector for ...
The Elasticsearch Presto connector allows to write the result of any query into a temporary “table” (read: index) on Elasticsearch, and then ...
Read more >Connect to remote clusters | Elasticsearch Guide [master]
Select Remote Clusters from the side navigation. · Specify the Elasticsearch endpoint URL, or the IP address or host name of the remote...
Read more >Publish Elasticsearch-Connected Dashboards in Tableau ...
Enable Connectivity to Elasticsearch in Tableau Server · Create a directory for the connector files. For example: C:\Program Files\Tableau\Connectors · Update ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got the same error
Just resolved it , You should use
transport.publish_host=your-ip-address
and verify that when you usingcurl localhost:9200/_nodes
thetransport_address
should be your ip andclusterName
should match your config or default is elasticsearch