Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8497A181E3 for ; Tue, 2 Feb 2016 14:38:19 +0000 (UTC) Received: (qmail 55415 invoked by uid 500); 2 Feb 2016 14:38:09 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 55275 invoked by uid 500); 2 Feb 2016 14:38:09 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 55264 invoked by uid 99); 2 Feb 2016 14:38:09 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 14:38:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DA3A2180296 for ; Tue, 2 Feb 2016 14:38:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.4 X-Spam-Level: ** X-Spam-Status: No, score=2.4 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2.5, MIME_QP_LONG_LINE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RPLOEQ4ZMAbt for ; Tue, 2 Feb 2016 14:38:01 +0000 (UTC) Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id BC17620271 for ; Tue, 2 Feb 2016 14:38:00 +0000 (UTC) Received: by mail-pf0-f173.google.com with SMTP id 65so106223304pfd.2 for ; Tue, 02 Feb 2016 06:38:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/jkKl6nwPr7HSEFJjt9see4jzN5i5huNNy6TBg1kJew=; b=Jy1QyEs9iJX5Tbw78pi3oSpZWO2GS51IY0q5pchsW+mCwWD1P2n7H8rRZTtsTiiIiW O73DUli0mXNWG5xSNs1teVL5+ayx5OuksNH+/7yxkc/6O0fp9UFc/Sky4KivGhL26ArT YG6mU+PVVlYzIsBGfKUoAAplI3tVA2SO1iS7ttmsX6dwZ1NdZC3hCembi6z8cs49zw/5 ZCTCXEbj9vL4czW6QjJh/tlJ1UI2N/tzIeZ0D2Pi8i2OrbLbUzxZ6s+QouUvzETJyTe8 J+jbvgVV3wC3rFRxKpr2/x6R3DKKkDDzctj4Q9k97BSrX0CGZEEvgE9oBVqBLWj4/nXB HUzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=/jkKl6nwPr7HSEFJjt9see4jzN5i5huNNy6TBg1kJew=; b=gYvb7gYaKS6q1qbZ17nEz7hMJWIoWTwZfULnu6G6BxFlsU94/QGD11WGl3r+fB9eVJ OWvpVOI6Xux5JckhS1maplpjzwuQWgQq6MiR5yB5w2lata50nLIkrsds5K0S44WHGzzq lDNXtqXaPZAUTooLVBHgLoMc2SK4TH1VNDxU8mEzRPktWtshlbnFK2Ponn+nolw76+D9 Uuf3N0KWmJcxC0dJWTWK1rJvgww7UmYX8AhJ0rgtmsTOipo+qqjKx8Ncl8Jx/uu2TR6K rjbfGRqRiIf9S6zyuvNXPfnN+7mnHdIZPoVHaZ2DWXcYEVFxfvD/yuZhqepSK9ZEQFkL z8sQ== X-Gm-Message-State: AG10YOQ8XVbifojpqozJwY2ILczr3m1yUmikRTWwuhhWiPZqXO8lyKUDtSztyZDD4KLlBA== X-Received: by 10.98.74.71 with SMTP id x68mr47196005pfa.80.1454423880505; Tue, 02 Feb 2016 06:38:00 -0800 (PST) Received: from [192.168.0.14] (c-50-150-102-33.hsd1.ca.comcast.net. [50.150.102.33]) by smtp.gmail.com with ESMTPSA id 85sm3273120pfl.18.2016.02.02.06.37.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Feb 2016 06:37:59 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-CCF363C5-920F-4596-BF27-A0B32C341848 Mime-Version: 1.0 (1.0) Subject: Re: Sqoop import Mysql to hive import Partitions From: Ted Yu X-Mailer: iPhone Mail (13A344) In-Reply-To: Date: Tue, 2 Feb 2016 06:37:58 -0800 Cc: user@hadoop.apache.org Content-Transfer-Encoding: 7bit Message-Id: <08588909-82C4-47D0-8C57-049031D9D265@gmail.com> References: To: Arun Pandian --Apple-Mail-CCF363C5-920F-4596-BF27-A0B32C341848 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable The question is better suited for sqoop mailing list.=20 Meanwhile, you can search for past threads / JIRAs on this subject.=20 e.g. http://search-hadoop.com/m/C63T91ojE6B14UByZ&subj=3Dsqoop+1+4+4+hive+import+= error > On Feb 2, 2016, at 5:28 AM, Arun Pandian wro= te: >=20 > How to create sqoop import mysql to hive partition , this is my code >=20 >=20 >=20 > sqoop import --connect jdbc:mysql://localhost/arun --table account --user= name root --password hadoop -m 1 --hive-partition-key "name" --hive-partiti= on-value "arun" --hive-database company --create-hive-table --hive-table a= ccount5 --target-dir /user/sqooptest21 >=20 > mysql database is arun, > table is account > select * from account; > +----+-------+------+------------+---------+ > | id | name | age | joindate | namess | > +----+-------+------+------------+---------+ > | 1 | Arun | 23 | 29-01-2016 | super | > | 2 | Mani | 22 | 30-01-2016 | superb | > | 3 | Sana | 25 | 20-01-2016 | superbb | > | 4 | Vicky | 24 | 02-02-2016 | supervb | > | 5 | Vis | 23 | 30-05-2016 | super | > +----+-------+------+------------+---------+ >=20 >=20 > i need clear explanation for sqoop import mysql to hive >=20 >=20 >=20 > Thanks & Regards > Arunpandian.l > Associate Developer --Apple-Mail-CCF363C5-920F-4596-BF27-A0B32C341848 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
The question is better suit= ed for sqoop mailing list. 

Meanwhile, you can= search for past threads / JIRAs on this subject. 
e.g.
=

On Feb 2, 2016, at 5:= 28 AM, Arun Pandian <arunp= andiansumtwo@gmail.com> wrote:

How to create sqoop import  mysql to hive p= artition , this is my code



sqoop import --con= nect jdbc:mysql://localhost/arun  --table account --username root --pas= sword hadoop -m 1  --hive-partition-key "name" --hive-partition-value "= arun" --hive-database company  --create-hive-table  --hive-table a= ccount5  --target-dir /user/sqooptest21

mysql databas= e is arun,
table is account
select * from account;
+----= +-------+------+------------+---------+
| id | name  | age  | j= oindate   | namess  |
+----+-------+------+------------+--= -------+
|  1 | Arun  |   23 | 29-01-2016 | super&nbs= p;  |
|  2 | Mani  |   22 | 30-01-2016 | superb&= nbsp; |
|  3 | Sana  |   25 | 20-01-2016 | superbb |<= br>|  4 | Vicky |   24 | 02-02-2016 | supervb |
|  5 |= Vis   |   23 | 30-05-2016 | super   |
+---= -+-------+------+------------+---------+


i need clear e= xplanation for sqoop import mysql to hive



<= div dir=3D"ltr">
Thanks & Regards
Arunpandian.l
=
Associa= te Developer
= --Apple-Mail-CCF363C5-920F-4596-BF27-A0B32C341848--