Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-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 873D811ACC for ; Wed, 24 Sep 2014 21:01:35 +0000 (UTC) Received: (qmail 22087 invoked by uid 500); 24 Sep 2014 21:01:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 22004 invoked by uid 500); 24 Sep 2014 21:01:35 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 21990 invoked by uid 500); 24 Sep 2014 21:01:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 21987 invoked by uid 99); 24 Sep 2014 21:01:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2014 21:01:35 +0000 Date: Wed, 24 Sep 2014 21:01:35 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-7107) Fix HiveServer1 JDBC Driver spec compliancy issue 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/HIVE-7107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146878#comment-14146878 ] Thejas M Nair commented on HIVE-7107: ------------------------------------- The test failures above are unrelated to this change. > Fix HiveServer1 JDBC Driver spec compliancy issue > ------------------------------------------------- > > Key: HIVE-7107 > URL: https://issues.apache.org/jira/browse/HIVE-7107 > Project: Hive > Issue Type: Bug > Affects Versions: 0.14.0 > Reporter: Lars Francke > Assignee: Lars Francke > Priority: Minor > Attachments: HIVE-7107.2.patch, HIVE-7107.2.patch > > > The HiveServer1 driver does not adhere to the JDBC standard of returning null when it can't handle a connection URL. It instead throws an exception which leads to subsequent exceptions (from other drivers, i.e. the HiveServer2 one) being swallowed. > This is what you'd see: > {quote} > Error: Invalid URL: jdbc:hive2://localhost:10000/default;principal=hive/_HOST@EXAMPLE.COM (state=08S01,code=0) > java.sql.SQLException: Invalid URL: jdbc:hive2://localhost:10000/default;principal=hive/_HOST@EXAMPLE.COM > at org.apache.hadoop.hive.jdbc.HiveConnection.(HiveConnection.java:86) > {quote} > In addition this patch cleans up the drivers a bit. -- This message was sent by Atlassian JIRA (v6.3.4#6332)