From dev-return-35540-archive-asf-public=cust-asf.ponee.io@sqoop.apache.org Fri Jan 19 07:49:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id D8B2E180607 for ; Fri, 19 Jan 2018 07:49:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C8DCC160C28; Fri, 19 Jan 2018 06:49:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 17D2D160C27 for ; Fri, 19 Jan 2018 07:49:03 +0100 (CET) Received: (qmail 17367 invoked by uid 500); 19 Jan 2018 06:49:03 -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 17356 invoked by uid 99); 19 Jan 2018 06:49:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2018 06:49:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BE2011A75A5 for ; Fri, 19 Jan 2018 06:49:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id HLIeiUfhC8gd for ; Fri, 19 Jan 2018 06:49:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 389D05F3FE for ; Fri, 19 Jan 2018 06:49:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A6D52E00CD for ; Fri, 19 Jan 2018 06:49:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 602B821207 for ; Fri, 19 Jan 2018 06:49:00 +0000 (UTC) Date: Fri, 19 Jan 2018 06:49:00 +0000 (UTC) From: "Ankush Gupta (JIRA)" To: dev@sqoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SQOOP-2192) SQOOP IMPORT/EXPORT for the ORC file HIVE TABLE Failing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SQOOP-2192?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1633= 1825#comment-16331825 ]=20 Ankush Gupta commented on SQOOP-2192: ------------------------------------- Hi Venkat, Hope you are doing fine. Do we have an update on this issue? I am trying to export the buckted table from Hive to SQL Server. Still gett= ing the same error. {color:#d04437}org.apache.hive.hcatalog.common.HCatException : 2016 : Error= operation not supported : Store into a partition with bucket definition fr= om Pig/Mapreduce is not supported{color} {color:#d04437}{color:#333333}Do we have any workaround to transfer the buc= keted data from Hive to SQL server using SQOOP.{color} {color} =C2=A0 > SQOOP IMPORT/EXPORT for the ORC file HIVE TABLE Failing > ------------------------------------------------------- > > Key: SQOOP-2192 > URL: https://issues.apache.org/jira/browse/SQOOP-2192 > Project: Sqoop > Issue Type: Bug > Components: hive-integration > Affects Versions: 1.4.5 > Environment: Hadoop 2.6.0 > Hive 1.0.0 > Sqoop 1.4.5 > Reporter: Sunil Kumar > Assignee: Venkat Ranganathan > Priority: Major > > We are trying to export RDMB table to Hive table for running Hive delete= , update queries on exported Hive table. Since for the Hive to support dele= te, update queries on following is required: > 1. Needs to declare table as having Transaction Property > 2. Table must be in ORC format > 3. Tables must to be bucketed > to do that i have create hive table using hcat: > create table bookinfo(md5 STRING , isbn STRING , bookid STRING , booktitl= e STRING , author STRING , yearofpub STRING , publisher STRING , imageurls = STRING , imageurlm STRING , imageurll STRING , price DOUBLE , totalrating D= OUBLE , totalusers BIGINT , maxrating INT , minrating INT , avgrating DOUBL= E , rawscore DOUBLE , norm_score DOUBLE) clustered by (md5) into 10 buckets= stored as orc TBLPROPERTIES('transactional'=3D'true'); > then running sqoop import: > sqoop import --verbose --connect 'RDBMS_JDBC_URL' --driver JDBC_DRIVER --= table bookinfo --null-string '\\N' --null-non-string '\\N' --username USER = --password PASSWPRD --hcatalog-database hive_test_trans --hcatalog-table bo= okinfo --hcatalog-storage-stanza "storedas orc" -m 1 > Following exception is comming: > 15/03/09 16:28:59 ERROR tool.ImportTool: Encountered IOException running = import job: org.apache.hive.hcatalog.common.HCatException : 2016 : Error op= eration not supported : Store into a partition with bucket definition from = Pig/Mapreduce is not supported > at org.apache.hive.hcatalog.mapreduce.HCatOutputFormat.setOutput(= HCatOutputFormat.java:109) > at org.apache.hive.hcatalog.mapreduce.HCatOutputFormat.setOutput(= HCatOutputFormat.java:70) > at org.apache.sqoop.mapreduce.hcat.SqoopHCatUtilities.configureHC= at(SqoopHCatUtilities.java:339) > at org.apache.sqoop.mapreduce.hcat.SqoopHCatUtilities.configureIm= portOutputFormat(SqoopHCatUtilities.java:753) > at org.apache.sqoop.mapreduce.ImportJobBase.configureOutputFormat= (ImportJobBase.java:98) > at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBa= se.java:240) > at org.apache.sqoop.manager.SqlManager.importTable(SqlManager.jav= a:665) > at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:4= 97) > at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:601) > at org.apache.sqoop.Sqoop.run(Sqoop.java:143) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179) > at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218) > at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227) > at org.apache.sqoop.Sqoop.main(Sqoop.java:236) > Please let any futher details required. -- This message was sent by Atlassian JIRA (v7.6.3#76005)