Hi,
I want to put a mapping in an index using elasticsearch-hadoop. Is there a way to create the mapping using the configuration? I've only found information on creating a mapping with the java api by using a node and client.
Thank you
Hi,
I want to put a mapping in an index using elasticsearch-hadoop. Is there a way to create the mapping using the configuration? I've only found information on creating a mapping with the java api by using a node and client.
Thank you
The connector can create a mapping based on your schema definition where that is supported (such as Pig, Hive, Spark).
Outside of it, one has to create the mapping externally for several reasons:
OutputFormat
being instantiated in the chain.In other words, it's a lot easier and safer to create this externally even more so since it's a one-time thing as oppose to a job which is typically ran several times across different data sets.
Thank you for your help!
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.