Re: How to implement a servlet to submit job to Hadoop 2.6.0 cluster

2015-05-27 Thread 杨浩
config.addResource(new Path(/usr/local/hadoop-2.6.0/etc/hadoop/core-site.xml)); the path is org.apache.hadoop.fs.Path, so the resource should be in hdfs, do you have the resource in hdfs? can you try the API config.addResource(InputStream in) 2015-05-25 18:36 GMT+08:00 Carmen Manzulli

Fwd: How to implement a servlet to submit job to Hadoop 2.6.0 cluster

2015-05-25 Thread Carmen Manzulli
Hi, I'm trying to run a servlet (QueryServlet) - using Tomcat 8- which submits a job called ArqOnHadoop2 to hadoop 2.6.0... this last one is configured using single node setting up in /usr/local folder. This job works if i start it from command line but, when i try to execute the follow code from