which version of hadoop you are using?
This is something similar with your error log:
http://stackoverflow.com/questions/19895969/can-access-hadoop-fs-through-shell-but-not-through-java-main

Regards,
*Stanley Shi,*



On Wed, Mar 5, 2014 at 4:29 PM, 张超 <chao.zh...@dianping.com> wrote:

> Hi all,
> Here is a problem that confuses me.
>
> when I use java code to manipulate pseudo-distributed hadoop , it throws
> an exception:
>
> java.io.IOException: Failed on local exception: java.io.EOFException; Host
> Details : local host is: "localhost/127.0.0.1"; destination host is:
> ""localhost":9000;
>
> I have imported the "core-site.xml" file, hadoop-common.jar and
> hadoop-hdfs.jar into my project, and also run the  pseudo-distributed
> cluster.
>
> How can I solve the problem ? Please tell me, thank you !
>

Reply via email to