Reading data from elasticsearch with ES-Hadoop


(Ali Zadedehbalaei) #1

i want to retrieve Elasticsearch Data with ES-Hadoop.
i use the following code to retrieve Elastic data but get Java.io.IOException:

JobConf conf=new JobConf();
conf.set("es.nodes","10.25.4.12:9200");
conf.set("es.resource","university/docs");
conf.set("es.query","?q=*");
conf.setInputFormat(EsInputFormat.class);
conf.setMapOutputKeyClass(Text.class);
conf.setOutputValueClass(MapWritable.class);
FileOutputFormat.setOutputPath(conf,new Path(hdfs://10.25.4.12/user));
JobClient.runJob(conf);


(James Baiera) #2

You haven't provided much info here that would allow me to help you. Can you include the stack trace and logs from your job?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.