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

Dynamic index writer doesn't work with dataframes (spark sql) #593

Closed
AlexeyRaga opened this issue Nov 5, 2015 · 2 comments
Closed

Dynamic index writer doesn't work with dataframes (spark sql) #593

AlexeyRaga opened this issue Nov 5, 2015 · 2 comments

Comments

@AlexeyRaga
Copy link

Hi, I am trying to use dynamic field writer feature:

conf.set("es.index.auto.create", "true")
....


docFrame.select("*", "doc.start").saveToEs("test2/{start}")

And here is the exception I get:

org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Cannot find match for test2/{start}

I tracked it down a bit and I see that it uses ScalaMapFieldExtractor trying to extract the value from the row, which may of may not be a problem (unfortunately it is hard to track because the source package on maven doesn't contain anything under serialization.

@costin
Copy link
Member

costin commented Nov 9, 2015

trying to extract the value from the row, which may of may not be a problem

What do you documents look like? Typically this exception occurs if the RDD / DataFrame does not provide the field mentioned in the template.

@costin
Copy link
Member

costin commented Jan 31, 2016

No follow-up, closing the issue

@costin costin closed this as completed Jan 31, 2016
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

2 participants