Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AB3C1877B for ; Tue, 15 Dec 2015 22:08:49 +0000 (UTC) Received: (qmail 25535 invoked by uid 500); 15 Dec 2015 22:08:49 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 25479 invoked by uid 500); 15 Dec 2015 22:08:49 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 25468 invoked by uid 99); 15 Dec 2015 22:08:48 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2015 22:08:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8A7F0C357F for ; Tue, 15 Dec 2015 22:08:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.771 X-Spam-Level: * X-Spam-Status: No, score=1.771 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 7O_ckfZjP9pq for ; Tue, 15 Dec 2015 22:08:48 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 81B0D20BC2 for ; Tue, 15 Dec 2015 22:08:47 +0000 (UTC) Received: (qmail 24481 invoked by uid 99); 15 Dec 2015 22:08:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2015 22:08:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A1C592C1F6E for ; Tue, 15 Dec 2015 22:08:46 +0000 (UTC) Date: Tue, 15 Dec 2015 22:08:46 +0000 (UTC) From: "Josh Elser (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-2531) Phoenix thin-client jar has incorrect META-INF/services/java.sql.Driver file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15058932#comment-15058932 ] Josh Elser commented on PHOENIX-2531: ------------------------------------- [~ndimiduk], this is the issue I had mentioned to you earlier. > Phoenix thin-client jar has incorrect META-INF/services/java.sql.Driver file > ---------------------------------------------------------------------------- > > Key: PHOENIX-2531 > URL: https://issues.apache.org/jira/browse/PHOENIX-2531 > Project: Phoenix > Issue Type: Bug > Reporter: Josh Elser > Assignee: Josh Elser > Priority: Blocker > Fix For: 4.7.0 > > Attachments: PHOENIX-2531.patch > > > Trying to hook up the thin-client to pherf, I was having some troubles with being unable to find the thin-client Driver. I knew that we should be getting it loaded by the service definition contained in the jar {{META-INF/services/java.sql.Driver}}. > Upon inspection of the "normal" jar produced by {{phoenix-server-client}}, the contents of the file were as we expect {{org.apache.phoenix.queryserver.client.Driver}}. However, the top-level "thin-client" jar we bundle in the tarball had a value of {{org.apache.calcite.avatica.remote.Driver}} instead. > It seems like when we built {{phoenix-$VERSION-thin-client.jar}} (jar-with-dependencies is all it is, really), Avatica's {{META-INF/services/java.sql.Driver}} was overwriting the copy we had in {{phoenix-server-client/src/main/resources}}. I'm not sure how/why we didn't notice this yet (for example, why did sqlline-thin.py work?), but it's definitely busted for how it _should_ work. > It's a simple enough fix to explicitly set the file in the assembly descriptor. -- This message was sent by Atlassian JIRA (v6.3.4#6332)