hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhixuan Zhu" <z...@calpont.com>
Subject Having problem to run hadoop with a jar file
Date Thu, 12 Apr 2012 05:38:42 GMT
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

Thanks very much,

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
	at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:369)
	at org.apache.hadoop.mapred.JobClient.init(JobClient.java:471)
	at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:456)
	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.run(Client.java:689)

View raw message