1

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.

ZianyD
  • 171
  • 2
  • 12

1 Answers1

-2

use this :

passthrough {
es.nodes.discovery: false
es.nodes: "foobar:9200"
}
arglee
  • 1,374
  • 4
  • 17
  • 30
  • 4
    While 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
  • @arglee very nice of you – Joseph Tankoua Dec 29 '20 at 08:32