Return-Path: X-Original-To: apmail-sqoop-dev-archive@www.apache.org Delivered-To: apmail-sqoop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CCE831728F for ; Wed, 8 Oct 2014 11:17:10 +0000 (UTC) Received: (qmail 2668 invoked by uid 500); 8 Oct 2014 11:17:10 -0000 Delivered-To: apmail-sqoop-dev-archive@sqoop.apache.org Received: (qmail 2631 invoked by uid 500); 8 Oct 2014 11:17:10 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 2619 invoked by uid 99); 8 Oct 2014 11:17:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 11:17:10 +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 s28sweet@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 11:16:44 +0000 Received: by mail-lb0-f173.google.com with SMTP id 10so7906918lbg.18 for ; Wed, 08 Oct 2014 04:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=9VS3u1br8RkAd7+bOwOfKYQp7r9YlsWjjn96Bbg+cs4=; b=RIJ+M/RqrrqLrVuegChvlDLpcy8NaCSEW96kpx33ObKOD5KH85sxWhl2v39r/fTPa7 nWkRreITNcZYJBduJXCHJQXPlrsTq9+kd8FWV056z6gyGWUHcttNFy9xbLpYwVrhf4GE wqQe0TU6iKLWtAJHG5NYO6RUBUNq9wDXRzp7gClc03+9cVcKO6QaZ0xZ1h3vqw0xV8De 7+StJZygaaIpiKJDZHPE+O6k9RxLClh7Lb51B39rQaR5GKn1Va+44TLOEqabElkiWBgX VDQ/7Jnuw1Ay+bs8d1Ks1VjyYQemxkM2oxfXYZcLqZGVqKlRfO7cWwQ8I5ZRpefBXP5Y LNlA== X-Received: by 10.112.201.195 with SMTP id kc3mr10272235lbc.8.1412767004093; Wed, 08 Oct 2014 04:16:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.5.34 with HTTP; Wed, 8 Oct 2014 04:16:24 -0700 (PDT) From: shakun grover Date: Wed, 8 Oct 2014 16:46:24 +0530 Message-ID: Subject: Sqoop2:Duplicate Column Name in Multiple Tables Import To: dev@sqoop.apache.org Content-Type: multipart/alternative; boundary=001a11c334206df3e70504e7734e X-Virus-Checked: Checked by ClamAV on apache.org --001a11c334206df3e70504e7734e Content-Type: text/plain; charset=UTF-8 Hi All, I want to import multiple tables' data to HDFS. But while doing this, if same column name is there in more than one table. It gives me exception while starting the job. *Job:* Name: testMultipleTables Database configuration Schema name: Table name: Table SQL statement: select tbl1.name , tbl1.description, tbl1.id, tbl2.class, tbl2.id from test.table_1 as tbl1, test.table_2 as tbl2 WHERE ${CONDITIONS} Table column names: Partition column name: tbl1.id Nulls in partition column: Boundary query: Output configuration Storage type: 0 : HDFS Choose: 0 Output format: 0 : TEXT_FILE 1 : SEQUENCE_FILE Choose: 0 Output directory: /tmp/multitables/3 *Exception while starting the job on the console:* Exception has occurred during processing command Server has returned exception: Exception: java.lang.Throwable Message: GENERIC_JDBC_CONNECTOR_0002:Unable to execute the SQL statement *Exception in the logs:* Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate column name 'id' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) Could you please tell me a solution for this? -- Thanks & Regards, Shakun Grover --001a11c334206df3e70504e7734e--