From issues-return-94007-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Thu Mar 12 08:53:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1BDBC18064F for ; Thu, 12 Mar 2020 09:53:03 +0100 (CET) Received: (qmail 87933 invoked by uid 500); 12 Mar 2020 08:53:02 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 87877 invoked by uid 99); 12 Mar 2020 08:53:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2020 08:53:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 33C55E0EAA for ; Thu, 12 Mar 2020 08:53:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 3F08D780369 for ; Thu, 12 Mar 2020 08:53:00 +0000 (UTC) Date: Thu, 12 Mar 2020 08:53:00 +0000 (UTC) From: "Pierre Villard (Jira)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-7247) Unable to execute SQL 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/NIFI-7247?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D17057= 720#comment-17057720 ]=20 Pierre Villard commented on NIFI-7247: -------------------------------------- I'm not really surprised by the fact that the first run is taking a long ti= me since the connection is going to be initialized/created in the pool at t= his time. This JIRA is not clear to me, what you're saying is: * first execution works but takes a long time * next executions won't work (with the error shown in the attachment?) * if disabling/enabling the controller service, then the next execution wi= ll work again and the next ones will fail Is it correct? > Unable to execute SQL > --------------------- > > Key: NIFI-7247 > URL: https://issues.apache.org/jira/browse/NIFI-7247 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Affects Versions: 1.11.3 > Environment: containerized environment on EC2 (amzn2-ami-hvm-2.0.= 20191116.0-x86_64-gp2) > Reporter: Martin > Priority: Major > Labels: databricks, delta, jdbc, sql > Fix For: 1.11.4 > > Attachments: Error in UI.jpg, flow_as_template.xml, nifi-app.log > > > Scenario: > We use ExecuteSQL to read delta tables (stored in S3) via JDBC connection= to databricks. > =C2=A0 > Temporary Fix: > If we deactivate and reactivate the controller service, then ExecuteSQL w= orks without problems. What is noticeable here, however, is that it takes q= uite a long time the first time it is executed and the next time it is exec= uted it is done within 3 seconds. > =C2=A0 > Background information: > * Howto use Databricks JDBC=C2=A0[https://docs.databricks.com/integratio= ns/bi/jdbc-odbc-bi.html] > * Controller Service=C2=A0DBCPConnectionPool 1.11.3 > **=20 > URL:=C2=A0jdbc:spark://#\{databricks.host}...\{databricks.cluster.id};...= ;PWD=3D#\{databricks.token} > Driver Class:=C2=A0com.simba.spark.jdbc.Driver > * Table > ** one column with <20 entries > ** Created By Spark 2.4.4 > ** Type MANAGED > ** Provider delta > ** Location s3 > ** Serde Library org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe > ** InputFormat org.apache.hadoop.mapred.SequenceFileInputFormat > ** OutputFormat org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputForma= t > * SQL=C2=A0 > ** SELECT * FROM "${db.table.schema}"."${db.table.name}" > ** output <20 entries > =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)