Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace/Ignore DOT character in field names before inserting into Elastic Search #758

Closed
1 task done
gowthamsadasivam opened this issue May 9, 2016 · 3 comments
Closed
1 task done

Comments

@gowthamsadasivam
Copy link

gowthamsadasivam commented May 9, 2016

What kind an issue is this?

  • Feature Request

Feature description

Elastic Search v 2.x stopped supporting the DOT ('.') character in the field names. There has been various discussions going on to support and handle the side effects of this change.

elastic/elasticsearch#17759

elastic/elasticsearch#15714

elastic/elasticsearch#15951

Reproduce the issue

Example Document:

app { "adv.id": "efT3Fg5JnvJVs57IOnc" }

^ Here the field name "adv.id" contains '.' dot character. While trying to insert using Hive insert with ES-Hadoop Connector, results in the following error:

Caused by: org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: Found unrecoverable error [127.0.0.1:9200] returned Bad Request(400) - Field name [adv.id] cannot contain '.'; Bailing out..

^ And the entire Hive Job will be failed due to the error.

Meanwhile Logstash supports this via de_dot as well as we can even use Ruby block to replace the DOT character with something else before writing to Elastic Search. I couldn't find a similar feature that can be used to achieve the same with ES-Hadoop Connector.

It would be great if there a feature/configuration that can be used to replace the DOT character in the field names with some other character or just ignore the document which contains the DOT character before writing to Elastic Search.

@costin
Copy link
Member

costin commented May 31, 2016

The about to be released ES 5.0 alpha3 brings back support for fields with dot names hence why I'm closing this issue as wontfix.

@costin costin closed this as completed May 31, 2016
@Lavakush7
Copy link

@costin i am using ES 5.0 alpha3 but it is not supporting fields with dot. Please help

@costin
Copy link
Member

costin commented Jun 28, 2016

For questions, please use the dedicated forum not the issue tracker.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants