Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
olaf-alderss-macbook-pro:developer olaf$ perl pm_example.pl
[ERROR] ** ElasticSearch::Error::Request at /Users/olaf/local/lib/perl5/site_perl/5.12.2/ElasticSearch/Transport/HTTPLite.pm line 49 :
ReplicationShardOperationFailedException[[perlmongers][2] ]; nested:
With vars:{
'request' => {
'qs' => {},
'cmd' => '/perlmongers/group/626',
'data' => {
'web' => 'http://abe.pm.org/',
'email' => {
'type' => 'group'
},
'tsar' => {
'email' => {
'domain' => 'cpan.org',
'user' => 'rjbs',
'type' => 'personal'
},
'name' => 'Ricardo Signes'
},
'location' => {
'country' => 'United States of America',
'longitude' => '-75.370833',
'city' => 'Allentown-Bethlehem-Easton',
'latitude' => '40.625833',
'continent' => 'North America',
'region' => 'Lehigh Valley / ABE',
'state' => 'Pennsylvania'
},
'status' => 'active',
'date' => {
'content' => '20040208',
'type' => 'inception'
},
'name' => 'ABE.pm'
},
'method' => 'PUT'
},
'status_code' => 500,
'server' => 'localhost:9200',
'status_msg' => 'Internal Server Error
'
}
*********************
Server output:
*********************
olaf-alderss-macbook-pro:elasticsearch olaf$ bin/elasticsearch -f
[2011-02-11 00:20:38,955][INFO ][node ] [Chthon] {elasticsearch/0.13.1}[24894]: initializing ...
[2011-02-11 00:20:38,967][INFO ][plugins ] [Chthon] loaded []
[2011-02-11 00:20:43,039][INFO ][node ] [Chthon] {elasticsearch/0.13.1}[24894]: initialized
[2011-02-11 00:20:43,039][INFO ][node ] [Chthon] {elasticsearch/0.13.1}[24894]: starting ...
[2011-02-11 00:20:43,279][INFO ][transport ] [Chthon] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/10.0.1.6:9300]}
[2011-02-11 00:20:46,402][INFO ][cluster.service ] [Chthon] new_master [Chthon][2fHlvbEsSoS26XTzN2X4Ug][inet[/10.0.1.6:9300]], reason: zen-disco-join (elected_as_master)
[2011-02-11 00:20:46,496][INFO ][discovery ] [Chthon] elasticsearch/2fHlvbEsSoS26XTzN2X4Ug
[2011-02-11 00:20:46,775][INFO ][http ] [Chthon] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/10.0.1.6:9200]}
[2011-02-11 00:20:46,778][INFO ][node ] [Chthon] {elasticsearch/0.13.1}[24894]: started
[2011-02-11 00:20:47,707][INFO ][cluster.metadata ] [Chthon] [twitter] creating index, cause [gateway], shards [3]/[2], mappings []
[2011-02-11 00:20:48,199][INFO ][cluster.metadata ] [Chthon] [cpan] creating index, cause [gateway], shards [5]/[1], mappings [author, module, perlmongers, cpanratings, pod, dist]
[2011-02-11 00:20:48,664][INFO ][cluster.metadata ] [Chthon] [allowblessed] creating index, cause [gateway], shards [5]/[1], mappings [dist]
[2011-02-11 00:20:48,715][INFO ][cluster.metadata ] [Chthon] [twitter] created and added to cluster_state
[2011-02-11 00:20:50,653][INFO ][cluster.metadata ] [Chthon] [cpan] created and added to cluster_state
[2011-02-11 00:20:51,361][INFO ][cluster.metadata ] [Chthon] [allowblessed] created and added to cluster_state
[2011-02-11 00:20:55,750][INFO ][cluster.metadata ] [Chthon] [perlmongers] creating index, cause [api], shards [5]/[1], mappings []
[2011-02-11 00:20:56,060][INFO ][cluster.metadata ] [Chthon] [perlmongers] created and added to cluster_state
[2011-02-11 00:21:04,497][INFO ][cluster.metadata ] [Chthon] [perlmongers] update_mapping [group] (dynamic)
[2011-02-11 00:21:04,514][DEBUG][action.index ] [Chthon] [perlmongers][2], node[2fHlvbEsSoS26XTzN2X4Ug], [P], s[STARTED]: Failed to execute [index {[perlmongers][group][626], source[{"web":"http://abe.pm.org/","email":{"type":"group"},"tsar":{"email":{"domain":"cpan.org","user":"rjbs","type":"personal"},"name":"Ricardo Signes"},"location":{"country":"United States of America","longitude":"-75.370833","city":"Allentown-Bethlehem-Easton","latitude":"40.625833","continent":"North America","region":"Lehigh Valley / ABE","state":"Pennsylvania"},"status":"active","date":{"content":"20040208","type":"inception"},"name":"ABE.pm"}]}]
java.lang.NullPointerException
at org.elasticsearch.index.mapper.xcontent.ObjectMapper.parse(ObjectMapper.java:293)
at org.elasticsearch.index.mapper.xcontent.ObjectMapper.serializeObject(ObjectMapper.java:315)
at org.elasticsearch.index.mapper.xcontent.ObjectMapper.parse(ObjectMapper.java:286)
at org.elasticsearch.index.mapper.xcontent.XContentDocumentMapper.parse(XContentDocumentMapper.java:398)
at org.elasticsearch.index.mapper.xcontent.XContentDocumentMapper.parse(XContentDocumentMapper.java:344)
at org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:233)
at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:166)
at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:66)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:418)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.access$200(TransportShardReplicationOperationAction.java:218)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:316)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment