Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 255C410D97 for ; Wed, 5 Mar 2014 08:42:57 +0000 (UTC) Received: (qmail 20085 invoked by uid 500); 5 Mar 2014 08:42:50 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 18186 invoked by uid 500); 5 Mar 2014 08:42:45 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 18124 invoked by uid 99); 5 Mar 2014 08:42:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2014 08:42:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_IMAGE_ONLY_20,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sshi@gopivotal.com designates 209.85.160.53 as permitted sender) Received: from [209.85.160.53] (HELO mail-pb0-f53.google.com) (209.85.160.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2014 08:42:39 +0000 Received: by mail-pb0-f53.google.com with SMTP id rp16so785717pbb.12 for ; Wed, 05 Mar 2014 00:42:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=fWB3z3hWMgM3go47YeP4/HDjsAFBxjPVuOcGh+ggYsA=; b=YhmTrEUg6pgDzaF2mBYV1+Vl9ckf5enCo9RRFi6qLqnMIxDEk5cbvqS47o7MmXlUsD uU7DbQX8JB1OVJUgMR8XzBeG9j2MhX8NeKHeK4gUWpvXbGCAobVs3lMBS98mO8Y2U7Fj T2IMrOW3idtbDKSXHSQlfroS0HWW5DJ81xbNLY0s3qMkFzJUagHLBIWcse/h5cPSo1xp j48nkvxaA+WjqG8b7M5kVE+2YU3Jt+gzF5kO1Hy7DyMZyPNt5AuC6U0FKDeedt+cmX56 0revL69t6/c3wy210C9Ye8l+1rRrEaXiJ/k13QgF5TehwPwfyrPuEuyBByDu0XdXWUlF iGKQ== X-Gm-Message-State: ALoCoQn70JW2yfFDIJHC3S1mQ2ckSLvWSwPLxj4XWTWEu7aoTmMNM9t67WDAYQhPvM92DiLODdqa MIME-Version: 1.0 X-Received: by 10.68.133.163 with SMTP id pd3mr5323091pbb.166.1394008939039; Wed, 05 Mar 2014 00:42:19 -0800 (PST) Received: by 10.70.92.98 with HTTP; Wed, 5 Mar 2014 00:42:18 -0800 (PST) In-Reply-To: References: Date: Wed, 5 Mar 2014 16:42:18 +0800 Message-ID: Subject: Re: How to solve it ? java.io.IOException: Failed on local exception From: Stanley Shi To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a1134b612a02c4204f3d7ff0e X-Virus-Checked: Checked by ClamAV on apache.org --001a1134b612a02c4204f3d7ff0e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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-sh= ell-but-not-through-java-main Regards, *Stanley Shi,* On Wed, Mar 5, 2014 at 4:29 PM, =E5=BC=A0=E8=B6=85 wrote: > Hi all=EF=BC=8C > 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; Hos= t > 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 ! > --001a1134b612a02c4204f3d7ff0e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
which version of hadoop you are using?

Regards,
Stanley Shi,



On Wed, Mar 5, 2014 at 4:29 PM, =E5=BC= =A0=E8=B6=85 <chao.zhang@dianping.com> wrote:
Hi all=EF=BC=8C
Here is a problem that conf= uses me.

when I use java code to manipulate pseudo-dist= ributed hadoop , it throws an exception:

java.io.IOExcep= tion: Failed on local exception: java.io.EOFException; Host Details : local= host is: "localhost/12= 7.0.0.1"; destination host is: ""localhost":9000;

I have imported the "core-site.xml" fil= e, hadoop-common.jar and hadoop-hdfs.jar into my project, and also run the = =C2=A0pseudo-distributed cluster.

How can I solve = the problem ? Please tell me, thank you !

--001a1134b612a02c4204f3d7ff0e--