Reading data from elasticsearch with ES-Hadoop

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);

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?

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