Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 216F7200B29 for ; Thu, 30 Jun 2016 09:15:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1FF3A160A52; Thu, 30 Jun 2016 07:15:12 +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 8B3BE160A51 for ; Thu, 30 Jun 2016 09:15:11 +0200 (CEST) Received: (qmail 47055 invoked by uid 500); 30 Jun 2016 07:15:10 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 47043 invoked by uid 99); 30 Jun 2016 07:15:10 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2016 07:15:10 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 376082C029F for ; Thu, 30 Jun 2016 07:15:10 +0000 (UTC) Date: Thu, 30 Jun 2016 07:15:10 +0000 (UTC) From: =?utf-8?Q?Maciej_Bry=C5=84ski_=28JIRA=29?= To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-16226) change the way of JDBC commit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Jun 2016 07:15:12 -0000 [ https://issues.apache.org/jira/browse/SPARK-16226?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D153= 56653#comment-15356653 ]=20 Maciej Bry=C5=84ski commented on SPARK-16226: ---------------------------------------- -1 for this patch. > change the way of JDBC commit > ----------------------------- > > Key: SPARK-16226 > URL: https://issues.apache.org/jira/browse/SPARK-16226 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.6.2 > Reporter: lihongli > > In the file spark/sql/core/src/main/scala/org/apache/spark/sql/execution= /datasources/jdbc/JdbcUtils.scala,we have the method savePartition().We can= create JDBC connection with each partition.But when I insert data to my re= lational DB,it is blocked.I found that we commit once in a partition.Then I= changed it.I commit =20 > after executeBatch() and my code worked properly.I did not know how it p= erformed in NoSQL database,but it does have a problem in my relational DB. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org