Starting a Hadoop job programtically

2010-11-22 Thread praveen.peddi
Hi all, I am trying to figure how I can start a hadoop job porgramatically from my Java application running in an app server. I was able to run my map reduce job using hadoop command from hadoop master machine but my goal is to run the same job from my java program (running on a different machin

Starting a Hadoop job programtically

2010-11-25 Thread li ping
Hi: I am trying to run a job in my own application. So far, I can run the job on the server which the hadoop server is running on. But what I expect is the hadoop server is running on server A. and the application will run on other server (B server). If I run the application on Server B, it will

Re: Starting a Hadoop job programtically

2010-11-22 Thread David Rosenstrauch
On 11/22/2010 04:39 PM, praveen.pe...@nokia.com wrote: Hi all, I am trying to figure how I can start a hadoop job porgramatically from my Java application running in an app server. I was able to run my map reduce job using hadoop command from hadoop master machine but my goal is to run the same j

Re: Starting a Hadoop job programtically

2010-11-22 Thread Henning Blohm
Hi Praveen, we do. We are using the "new" org.apache.hadoop.mapreduce.* API in Hadoop 0.20.2. Essentially the flow is: // // assuming all config is on the class path Configuration config = new Configuration(); Job job = new Job(config, "some job name"); // set in/out types

RE: Starting a Hadoop job programtically

2010-11-22 Thread praveen.peddi
ubject: Re: Starting a Hadoop job programtically Hi Praveen, we do. We are using the "new" org.apache.hadoop.mapreduce.* API in Hadoop 0.20.2. Essentially the flow is: // // assuming all config is on the class path Configuration config = new Configuration(); Job

RE: Starting a Hadoop job programtically

2010-11-23 Thread Henning Blohm
__ > From: ext Henning Blohm [mailto:henning.bl...@zfabrik.de] > Sent: Monday, November 22, 2010 5:07 PM > To: mapreduce-user@hadoop.apache.org > Subject: Re: Starting a Hadoop job programtically > > > > > Hi Praveen, > > we

RE: Starting a Hadoop job programtically

2010-11-23 Thread praveen.peddi
henning.bl...@zfabrik.de] Sent: Tuesday, November 23, 2010 3:24 AM To: mapreduce-user@hadoop.apache.org Subject: RE: Starting a Hadoop job programtically Hi Praveen, in order to submit it to the cluster, you just need to have a core-site.xml on your classpath (or load it explicitly into your configu

RE: Starting a Hadoop job programtically

2010-11-23 Thread Henning Blohm
ck (as I tried to explain before and if I am not mistaken). > > Thanks > Praveen Good luck, Henning > > > __ > From: ext Henning Blohm [mailto:henning.bl...@zfabrik.de] > Sent: Tuesday, No

RE: Starting a Hadoop job programtically

2010-11-23 Thread praveen.peddi
taken). Thanks Praveen Good luck, Henning From: ext Henning Blohm [mailto:henning.bl...@zfabrik.de] Sent: Tuesday, November 23, 2010 3:24 AM To: mapreduce-user@hadoop.apache.org Subject: RE: Starting a Hadoop job programtically Hi Praveen, in order to submit it

RE: Starting a Hadoop job programtically

2010-11-24 Thread Henning Blohm
on.java:762) > at > org.apache.hadoop.conf.Configuration.getClass(Configuration.java:807) > ... 4 more > > Praveen > > > __ > From: ext Henning Blohm [mailto:henning.bl...@zfabrik.de] > S

RE: Starting a Hadoop job programtically

2010-11-24 Thread praveen.peddi
ovember 24, 2010 3:38 AM To: mapreduce-user@hadoop.apache.org Subject: RE: Starting a Hadoop job programtically Hi Praveen, looking at the Job configuration you will find properties like user.name and more stuff that has created by substituting template values in core-default.xml, mapred-default.x

Re: Starting a Hadoop job programtically

2010-11-25 Thread Jeff Zhang
Please check the status of job tracker since you can not find port 9001 using netstat 2010/11/25 li ping : > Hi: > I am trying to run a job in my own application. > So far, I can run the job on the server which the hadoop server is running > on. > But what I expect is the hadoop server is runnin

Re: Starting a Hadoop job programtically

2010-11-25 Thread Harsh J
Are you running a firewall on Server A? Check your firewall settings if so, to allow connections to port 9001/etc.. I'd recommend disabling Firewalls in development environments. 2010/11/25 li ping : > Hi: > I am trying to run a job in my own application. > So far, I can run the job on the server

Re: Starting a Hadoop job programtically

2010-11-25 Thread jingguo yao
A possible cause is that name node and job tracker on server A are bound to a local address such as 127.0.0.1 which server B can't see. If you are using linux, you can check /etc/hosts to make sure that xi-pli is not bound to a local address. 2010/11/25 li ping > Hi: > > I am trying to run a jo

Re: Starting a Hadoop job programtically

2010-11-25 Thread li ping
But I can run the application on the hadoop server. (not use the hadoop command to run). On Thu, Nov 25, 2010 at 4:38 PM, Jeff Zhang wrote: > Please check the status of job tracker since you can not find port > 9001 using netstat > > > > 2010/11/25 li ping : > > Hi: > > I am trying to run a jo

Re: Starting a Hadoop job programtically

2010-11-25 Thread li ping
I made it works. The configuration file contains some error. fs.default.name hdfs://xi-pli:9000 mapred.job.tracker xi-pli:9001 Here,we'd better use the IP address instead of the host-name. because the hostname may point to a lookback address. When