question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to connect with elastic search using presto when elasticsearch run on remote server

See original GitHub issue

I 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:open
  • Created 4 years ago
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
minhnguyenvatocommented, May 27, 2019

Got the same error

1reaction
minhnguyenvan95commented, May 27, 2019

Just resolved it , You should use transport.publish_host=your-ip-address and verify that when you using curl localhost:9200/_nodes the transport_address should be your ip and clusterName should match your config or default is elasticsearch

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found