hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Fondermann <bf_...@brainlounge.de>
Subject Re: Having problem to run hadoop with a jar file
Date Thu, 12 Apr 2012 07:35:12 GMT

verify that port 9001 is actually a RPC port that Hadoop uses for 
communication. A common error is to specify the port where Hadoop's 
WebUIs are running. There, HTTP is served, not the Hadoop RPC protocol.

In short: check you are using the right port in all XML config 
properties and in-code URLs.


On 12.04.12 07:38, Zhixuan Zhu wrote:
> HI there,
> I'm having some issue when running hadoop with an external jar file.
> My testing environment:
> Host machine: windows, eclipse 3.3 with hadoop-0.20.2 and plugin, Jre6
> Single node hadoop cluster: linux, hadoop-0.20.2, jdk_1.6.0_26
> I wrote MyFileInputFormat.class and MyDBOutputFormat.class, which extend
> the two DBformat classes to customize my database fetching and loading.
> When I add the two files in the same project as my driver and mapper
> classes, everything works fine. But when I build the two files into a
> separate jar file and make it external library to my driver project
> (which do not have the two DB files anymore), I got the errors as posted
> below. I put the jar file on both my driver's build path, and in the
> $hadoop/lib of my hadoop node. I googled and people said this could be
> caused by non-matching hadoop version of jar and driver. But I'm using
> exactly the same version for both sides. Any suggestions are highly
> appreciated.
> Thanks very much,
> Grace
> java.io.IOException: Call to srvswint4.calpont.com/
> failed on local exception: java.io.EOFException
> 	at org.apache.hadoop.ipc.Client.wrapException(Client.java:1089)
> 	at org.apache.hadoop.ipc.Client.call(Client.java:1057)
> 	at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:226)
> 	at org.apache.hadoop.mapred.$Proxy0.getProtocolVersion(Unknown
> Source)
> 	at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:369)
> 	at
> org.apache.hadoop.mapred.JobClient.createRPCProxy(JobClient.java:486)
> 	at org.apache.hadoop.mapred.JobClient.init(JobClient.java:471)
> 	at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:456)
> 	at
> org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1196)
> 	at OutputTest.run(OutputTest.java:98)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at OutputTest.main(OutputTest.java:108)
> Caused by: java.io.EOFException
> 	at java.io.DataInputStream.readInt(Unknown Source)
> 	at
> org.apache.hadoop.ipc.Client$Connection.receiveResponse(Client.java:781)
> 	at org.apache.hadoop.ipc.Client$Connection.run(Client.java:689)

View raw message