So I want to read data from multiple Elasticsearch nodes into Spark. I prefer to use the "es.nodes" parameter and set "es.nodes.discovery" to false. The configuration parameters are described here. I tried to find some example on how to set "es.nodes" to an array of values but I couldn't. Help please.
Asked
Active
Viewed 4,177 times
1
-
4es.nodes property can be set as the following : `"machine1:port1,machine2:port2"` – ZianyD May 26 '16 at 08:42
-
could you tell me how to alias two nodes ? – Daniel Jul 02 '18 at 10:37
1 Answers
-2
use this :
passthrough {
es.nodes.discovery: false
es.nodes: "foobar:9200"
}

arglee
- 1,374
- 4
- 17
- 30
-
4While you may have solved this user's problem, code-only answers are not very helpful to users who come to this question in the future. Please edit your answer to explain why your code solves the original problem. – Joe C Mar 02 '17 at 23:33
-
Please it is good to add more explanation on your answer. Like where to add this code? Is there a file to edit ? Is there a file to create ? where ? This will be helpful – Joseph Tankoua Dec 25 '20 at 11:43
-
1@JosephTankoua Yes, makes sense and you are correct there should be more explanation but I guess within the question, everything has already explained and description of the question has links where these settings can be added. I will try to add more description and thank you for your suggestions. – arglee Dec 29 '20 at 06:49
-