Here are some of the basic configurations:
Specifies the Elasticsearch resource and type where the data is read from or written to. It must be specified in the <index>/<type>
format, for example, es.resource=eshadoop/wordcount
.
Specifies the Elasticsearch resource and type where the data is read. It is useful when the same job needs to read and write data to different Elasticsearch indices/types, for example, es.resource.read=eshadoop/wordcount
Specifies the Elasticsearch resource and type where the data is written. It is useful when the same job needs to read and write data to different Elasticsearch indices/types, for example, es.resource.write=eshadoop/wordcount
.
This defaults to localhost
.
Specifies the Elasticsearch nodes that it needs to connect to. By default, it doesn't have to list all the nodes; ES-Hadoop discovers other nodes that are connected to the cluster. However, you can list more nodes to ensure that ES-Hadoop can connect to the cluster if some nodes are down, for example, es.nodes=localhost
or es.nodes=localhost:9200
.