Elasticsearch-Hadoop library cannot connect to to docker container Elasticsearch-Hadoop library cannot connect to to docker container elasticsearch elasticsearch

Elasticsearch-Hadoop library cannot connect to to docker container


By setting

.config("es.nodes.wan.only", "true")

can solve this issue

es.nodes.ingest.only

(default false) Whether to use Elasticsearch ingest nodes only. When enabled, elasticsearch-hadoop will route all of its requests (after nodes discovery, if enabled) through the ingest nodes within the cluster. The purpose of this configuration setting is to avoid incurring the cost of forwarding data meant for a pipeline from non-ingest nodes; Really only useful when writing data to an Ingest Pipeline (see es.ingest.pipeline above).