If you are using M1 you should use es.resource instead of es.query in your 
latest example.
es.query is supported in the upcoming 1.3.0.M2 (not in m1).

On 04/02/2014 12:01 PM, Phil gib wrote:
hello my context:
  ES 0.90.3,   elasticsearch-hadoop-1.3.0.M1 , eclipse- java
i am experimenting ES->Hadoop  and Hadoop->ES
no problem with Hadoop2ES  with these 3 settings  ( i see the index + data  
through head plugin, perfect)
job.set("es.resource", "eshindex2/eshlog2");
job.set("es.host", "localhost");
job.set("es.port", "9200");
but experimenting the inverse , ie ES 2 Hadoop
        ....
         configuration.set("es.query", "eshindex2/eshlog2/_search?q=*");
         configuration.set("es.host", "localhost");
         configuration.set("es.port", "9200");
         System.out.println("conf:"+ configuration);
         JobConf job = new JobConf(configuration, SimpleJobES2Hadoop.class);
...................
i got the error
10:58:27 INFO mapred.JobClient: Cleaning up the staging area
file:/tmp/hadoop-xxx/mapred/staging/xxx-1302405475/.staging/job_local_0001
Exception in thread "main" java.lang.NullPointerException
     at org.elasticsearch.hadoop.rest.dto.Node.<init>(Node.java:30)
     at org.elasticsearch.hadoop.rest.RestClient.getNodes(RestClient.java:139)


Any idea?
bestsregards
philippe

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/2a52b4e7-3ecd-491b-8c6e-1d8d521260ef%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Costin

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/52F0BBE9.5040406%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to