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 721CA115F3 for ; Fri, 10 May 2013 12:52:01 +0000 (UTC) Received: (qmail 83995 invoked by uid 500); 10 May 2013 12:43:57 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 83640 invoked by uid 500); 10 May 2013 12:43:44 -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 83154 invoked by uid 99); 10 May 2013 12:43:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 12:43:23 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shahab.yunus@gmail.com designates 209.85.214.41 as permitted sender) Received: from [209.85.214.41] (HELO mail-bk0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 12:43:16 +0000 Received: by mail-bk0-f41.google.com with SMTP id jc3so1999346bkc.28 for ; Fri, 10 May 2013 05:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=4vmi2QdYSYiJz8J/Ltd9GugYzMgODGMx1zU006RBtcM=; b=AcAxQXY55FXtzfdZPuApl3TmWbCRwpLnS4iJVStsLXOOxm+35oUq01zs2hsyJ0PpEX v8R/5GX5aKj4SqtNEtakj/YwUDGUzCV+HF30l4eAPN7/Y8F88mSV+aL6yH+z4wJyWawn hrOc0jmKqJEZhiQ7pfTerF/99EhmCDIUUz9MaPaGnBJ6QE8wFPJH9Tb+0LPAcxc+VaLH rrUhJfdf/iSJzl1LdD3dzY9URwWlNNK2lyI6laaV6c8ePEAKpJtZ9SuE+2kn1eKMUHux BDls4kPTrIzMaP7K0Vvg0Bqrm67HodvFwm08/vXi4CUJJ8p5Bk0D5Wwx2kFdzyb4jbCt EbYw== MIME-Version: 1.0 X-Received: by 10.205.55.17 with SMTP id vw17mr4328313bkb.24.1368189776594; Fri, 10 May 2013 05:42:56 -0700 (PDT) Received: by 10.204.49.15 with HTTP; Fri, 10 May 2013 05:42:56 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 May 2013 08:42:56 -0400 Message-ID: Subject: Re: hadoop map-reduce errors From: Shahab Yunus To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=bcaec51a70f69ecacd04dc5c8152 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51a70f69ecacd04dc5c8152 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Have your checked your connection settings to the MySQL DB? Where and how are you passing the connection properties for the database? Is it accessible from the machine you are running this? Is the db up? On Thu, May 9, 2013 at 9:32 PM, =E4=B8=99=E5=AD=90 wr= ote: > When i run a hadoop job ,there are some errors like this: > 13/05/10 08:20:59 ERROR manager.SqlManager: Error executing statement: > com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications > link failure > > The last packet successfully received from the server was 28,484 > milliseconds ago. The last packet sent successfully to the server was 1 > milliseconds ago. > com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications > link failure > > The last packet successfully received from the server was 28,484 > milliseconds ago. The last packet sent successfully to the server was 1 > milliseconds ago. > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > =E2=80=A6=E2=80=A6 > =E2=80=A6=E2=80=A6 > at org.apache.sqoop.Sqoop.main(Sqoop.java:238) > at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57) > Caused by: java.io.EOFException: Can not read response from server. > Expected to read 4 bytes, read 0 bytes before connection was unexpectedly > lost. > at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3039) > at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3489) > ... 24 more > > > How can i resolve it . > > --bcaec51a70f69ecacd04dc5c8152 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Have your checked your connection settings to the MySQL DB= ? Where and how are you passing the connection=C2=A0properties=C2=A0for the= database? Is it accessible from the machine you are running this? Is the d= b up?


On Thu, May 9= , 2013 at 9:32 PM, =E4=B8=99=E5=AD=90 <woyaofala@gmail.com> wrote:
When i =C2=A0run a hadoop job ,there are some errors like this:
13/05/10 08:20:59 ERROR manager.SqlManager: Error executing statement:= com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications li= nk failure

The last packet successfully received from the server w= as 28,484 milliseconds ago. =C2=A0The last packet sent successfully to the = server was 1 milliseconds ago.
com.mysql.jdbc.exceptions.jdbc4.Co= mmunicationsException: Communications link failure

The last packet successfully received from the server w= as 28,484 milliseconds ago. =C2=A0The last packet sent successfully to the = server was 1 milliseconds ago.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun= .reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

=
=E2=80=A6=E2=80= =A6
=E2=80= =A6=E2=80=A6
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.sqoop.Sqoop.main(Sqoop.java:= 238)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at com.cloudera.sqoop.Sqoop.main= (Sqoop.java:57)
Caused by: java.io.EOFException: Can not read res= ponse from server. Expected to read 4 bytes, read 0 bytes before connection= was unexpectedly lost.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at com.mysql.jdbc.MysqlIO.readFully(MysqlI= O.java:3039)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at com.mysql.jdbc.MysqlI= O.reuseAndReadPacket(MysqlIO.java:3489)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 ... 24 more


How =C2=A0can i resolve it .


--bcaec51a70f69ecacd04dc5c8152--