What is the code that you are trying?
*Warm Regards_**∞_* * Shashwat Shriparv* [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image: https://twitter.com/shriparv] <https://twitter.com/shriparv>[image: https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image: http://google.com/+ShashwatShriparv] <http://google.com/+ShashwatShriparv>[image: http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image: http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <[email protected]> On Wed, Mar 5, 2014 at 2:12 PM, Stanley Shi <[email protected]> wrote: > 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, 张超 <[email protected]> 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 ! >> > >
