Book Image

Elasticsearch for Hadoop

By : Vishal Shukla
Book Image

Elasticsearch for Hadoop

By: Vishal Shukla

Overview of this book

Table of Contents (15 chapters)
Elasticsearch for Hadoop
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Index configurations


Here are the index configurations:

es.index.auto.create

This defaults to yes. If set to no, the job fails if the index doesn't already exist.

es.index.read.missing.as.empty

This defaults to no and throws an exception if the index doesn't exist. If this is set to yes, it returns an empty dataset when the index doesn't exist.

es.field.read.empty.as.null

This defaults to yes. Checks whether ES-Hadoop will treat empty fields as null.

es.field.read.validate.presence

This Defaults to warn.

Specifies how ES-Hadoop should react when missing fields are found. It can take one of the following three values:

  • ignore: This indicates that no validation is performed

  • warn: This specifies that a warn message is logged

  • strict: This denotes that an exception is thrown