Skip to content

Instantly share code, notes, and snippets.

@ittaiz
ittaiz / MyType.java
Created January 25, 2012 19:32
Files showing elasticsearch UnavailableShardsException problem I'm having
package com.mycompany.elasticsearch.problem;
public class MyType {
private String oneProperty;
private long otherProperty;
public String getOneProperty() {
return oneProperty;
}
public void setOneProperty(String oneProperty) {
this.oneProperty = oneProperty;
@ittaiz
ittaiz / DocProperty.java
Created January 25, 2012 08:10
Example of the model for elasticsearch nested objects question (removed getters setters for clarity)
public class DocProperty {
private String undesiredProperty;
private long otherUndesiredProperty;
private String name;
}
@ittaiz
ittaiz / gist:1675266
Created January 25, 2012 07:50
How I'm initiating my client
Map<String,String> settings = new HashMap<String,String>();
settings.put("node.client","true");
settings.put("cluster.name","mycluster");
final NodeBuilder nodeBuilder = NodeBuilder.nodeBuilder();
nodeBuilder.getSettings().put(settings);
node = nodeBuilder.node();
@ittaiz
ittaiz / mycluster.log
Created January 25, 2012 07:45
ES Server log
[2012-01-25 09:26:35,733][WARN ][bootstrap ] jvm uses the client vm, make sure to run `java` with the server vm for best performance by adding `-server` to the command line
[2012-01-25 09:26:35,735][INFO ][node ] [Aardwolf] {0.18.7}[6784]: initializing ...
[2012-01-25 09:26:35,738][INFO ][plugins ] [Aardwolf] loaded [], sites []
[2012-01-25 09:26:36,940][INFO ][node ] [Aardwolf] {0.18.7}[6784]: initialized
[2012-01-25 09:26:36,940][INFO ][node ] [Aardwolf] {0.18.7}[6784]: starting ...
[2012-01-25 09:26:36,998][INFO ][transport ] [Aardwolf] bound_address {inet[/10.0.0.5:9300]}, publish_address {inet[/10.0.0.5:9300]}
[2012-01-25 09:26:40,080][INFO ][cluster.service ] [Aardwolf] new_master [Aardwolf][FEuGnJuuScirVXqmtZ8NwA][inet[/10.0.0.5:9300]], reason: zen-disco-join (elected_as_master)
[2012-01-25 09:26:40,190][INFO ][discovery ] [Aardwolf] mycluster/FEuGnJuuScirVXqmtZ8NwA
[2012-0