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 write works with "es.resource" but not "es.resource.write" #202

Closed
whitfin opened this issue Apr 29, 2014 · 1 comment
Closed

Dynamic write works with "es.resource" but not "es.resource.write" #202

whitfin opened this issue Apr 29, 2014 · 1 comment

Comments

@whitfin
Copy link

whitfin commented Apr 29, 2014

I have a job which writes data to ElasticSearch using:

conf.set("es.resource", "{title}/store");

which works just fine, but when doing this within a job which reads and writes as below, it doesn't seem to work.

conf.set("es.resource.read", "some/index");
conf.set("es.resource.write", "{title}/store");

This error is reported:

org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Cannot find match for {title}/store

and if I log out the JSON data I want to write, I get

{"title":"example title","type":"film"}

so the "title" field definitely exists.

Is this a known issue? Might I be doing something incorrectly?

Using 1.3.0M3.

@whitfin
Copy link
Author

whitfin commented Apr 29, 2014

Looks like this was due to a local issue, so I'll close this.

@whitfin whitfin closed this as completed Apr 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant