Re: Get JobInProgress given jobId

2012-11-28 Thread Harsh J
Such a mix won't work, and hence my (1) point of check. Please use a jar that matches the server version, and you'll have it working. On Thu, Nov 29, 2012 at 12:53 AM, Pedro Sá da Costa wrote: > And for this error, after all maybe I'm running hadoop.jar with > different versions. I'm running hado

Re: Get JobInProgress given jobId

2012-11-28 Thread Pedro Sá da Costa
And for this error, after all maybe I'm running hadoop.jar with different versions. I'm running hadoop-0.20 and trying to run JobClient in with hadoo-1.0 On 28 November 2012 19:20, Pedro Sá da Costa wrote: > I've this error in jobtracker log. Maybe this is the reason. What this > error means? > >

Re: Get JobInProgress given jobId

2012-11-28 Thread Pedro Sá da Costa
I've this error in jobtracker log. Maybe this is the reason. What this error means? 2012-11-28 19:19:17,697 WARN org.apache.hadoop.ipc.Server: Incorrect header or version mismatch from 127.0.0.1:60089 got version 4 expected version 3 On 28 November 2012 18:28, Pedro Sá da Costa wrote: > On 28

Re: Get JobInProgress given jobId

2012-11-28 Thread Pedro Sá da Costa
On 28 November 2012 18:12, Harsh J wrote: > nt application's hadoop jar same version as the server? Yes it is. > 2. Is the port 54311 the proper JobTracker port? This jobtracker port is set to: mapred.job.tracker localhost:54311 The host and port that the MapReduce job tracker runs a

Re: Get JobInProgress given jobId

2012-11-28 Thread Harsh J
Two things to check and address if not true: 1. Is your client application's hadoop jar same version as the server? 2. Is the port 54311 the proper JobTracker port? On Wed, Nov 28, 2012 at 11:37 PM, Pedro Sá da Costa wrote: > Yes, I already did like you tell, but I get an error in the > connecti

Re: Get JobInProgress given jobId

2012-11-28 Thread Pedro Sá da Costa
Yes, I already did like you tell, but I get an error in the connection, and this doesn't make any sense. java.io.IOException: Call to localhost/127.0.0.1:54311 failed on local exception: java.io.EOFException at org.apache.hadoop.ipc.Client.wrapException(Client.java:1107) at org.apa

Re: Get JobInProgress given jobId

2012-11-28 Thread Harsh J
Mahesh, The JobTracker is not a user-end API, it is a service. You can't query it for its private objects as simply as that, and hence what you've suggested would not work. Pedro, To get a RunningJob instance from a String representing the JobID you need the JobClient class, and you can do like

Re: Get JobInProgress given jobId

2012-11-28 Thread Pedro Sá da Costa
I have the jobId as a String, and from that I want to access the RunningJob API for that jobId. I think that it is only possible to access this API through the JobInProgress class, but maybe I'm wrong. Is this true? On 28 November 2012 17:24, Mahesh Balija wrote: > Hi Pedro, > > You ca

Re: Get JobInProgress given jobId

2012-11-28 Thread Harsh J
The JobInProgress object is a private one and can't be fetched unless you are running a service within the JobTracker environment. What are you looking for, from the JobInProgress' information, specifically, that is not found in the RunningJob interface provided to clients? On Wed, Nov 28, 2012 a

Get JobInProgress given jobId

2012-11-28 Thread Pedro Sá da Costa
I'm building a Java class and given a JobID, how can I get the JobInProgress? Can anyone give me an example? -- Best regards,