Bulk failure: [RemoteTransportException[[Dust][inet[/172.23.64.85:9300]][bulk/shard]]; nested: NullPointerException; ]

HI all,

Have anybody encountered the following error before when using bulk java
api to create indices?
[12]: index [201201], type [kba], id
[1326950520-7bfb3ba1ef213e53a8db20fe14b300e5], message
[RemoteTransportException[[Dust][inet[/172.23.64.85:9300]][bulk/shard]];
nested: NullPointerException; ]

It looked like that there existed some mismatched fields? but I did not
have some

the mapping setting of my index is listed belows :
XContentBuilder mapping = jsonBuilder()
.startObject()
.startObject("kba")
.startObject("properties")
.startObject("_source").field("compress", "true").endObject()
.startObject("stream_id").field("type",
"string").field("index","no").endObject()
.startObject("source").field("type", "string").field("index",
"no").endObject()
.startObject("epoch_ticks").field("type",
"double").field("index", "no").endObject()
.startObject("zulu_timestamp").field("type",
"string").field("index","no").endObject()

.startObject("title_cleansed").field("type","string").field("index",
"yes").endObject()

.startObject("title_ner").field("type","string").field("index","no").endObject()
.startObject("body_cleansed").field("type","string").endObject()

.startObject("body_ner").field("type","string").field("index","no").endObject()
.endObject()
.endObject()
.endObject();
PutMappingRequest mappingRequest =
Requests.putMappingRequest(indexName).type("kba").source(mapping);
client.admin().indices().putMapping(mappingRequest).actionGet();

I am using ElasticSearch 0.90.beta1 and I add about 500 docs in
one bulkRequest object.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

first, can you test with 0.90.0.RC2 to make sure you are using the latest
version?
second, can you post us a complete sample (as a gist preferrably), what you
were doing, so we can reproduce the issue?
third, can you check your logfiles to get a complete stack trace?

Also the '_source' configuration should be stored outside the 'properties'
field

--Alex

On Sun, Apr 14, 2013 at 3:51 PM, Jingang Wang bitwjg@gmail.com wrote:

HI all,

Have anybody encountered the following error before when using bulk java
api to create indices?
[12]: index [201201], type [kba], id
[1326950520-7bfb3ba1ef213e53a8db20fe14b300e5], message
[RemoteTransportException[[Dust][inet[/172.23.64.85:9300]][bulk/shard]];
nested: NullPointerException; ]

It looked like that there existed some mismatched fields? but I did not
have some

the mapping setting of my index is listed belows :
XContentBuilder mapping = jsonBuilder()
.startObject()
.startObject("kba")
.startObject("properties")
.startObject("_source").field("compress", "true").endObject()
.startObject("stream_id").field("type",
"string").field("index","no").endObject()
.startObject("source").field("type", "string").field("index",
"no").endObject()
.startObject("epoch_ticks").field("type",
"double").field("index", "no").endObject()
.startObject("zulu_timestamp").field("type",
"string").field("index","no").endObject()

.startObject("title_cleansed").field("type","string").field("index",
"yes").endObject()

.startObject("title_ner").field("type","string").field("index","no").endObject()
.startObject("body_cleansed").field("type","string").endObject()

.startObject("body_ner").field("type","string").field("index","no").endObject()
.endObject()
.endObject()
.endObject();
PutMappingRequest mappingRequest =
Requests.putMappingRequest(indexName).type("kba").source(mapping);
client.admin().indices().putMapping(mappingRequest).actionGet();

I am using Elasticsearch 0.90.beta1 and I add about 500 docs in
one bulkRequest object.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.