You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/15 07:51:00 UTC

[jira] [Commented] (DRILL-5968) C++ Client should set service_host to the connected host if service_host is empty

    [ https://issues.apache.org/jira/browse/DRILL-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16253073#comment-16253073 ] 

ASF GitHub Bot commented on DRILL-5968:
---------------------------------------

GitHub user superbstreak opened a pull request:

    https://github.com/apache/drill/pull/1037

    DRILL-5968: Add support for empty service_host user property

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/superbstreak/drill DRILL-5968-Add-support-for-empty-service_host

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/1037.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1037
    
----
commit 7deed948b05d35ff48287defad4ccefe61f0128f
Author: Rob Wu <ro...@gmail.com>
Date:   2017-11-15T07:27:29Z

    DRILL-5968: Add support for empty service_host user property

----


> C++ Client should set service_host to the connected host if service_host is empty
> ---------------------------------------------------------------------------------
>
>                 Key: DRILL-5968
>                 URL: https://issues.apache.org/jira/browse/DRILL-5968
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Parth Chandra
>
> In the ODBC driver - 
> The krbSpnConfigurationsRequired parameter in odbc.ini is not working as expected.  If I set the following:
> AuthenticationType=Kerberos
> UID=
> PWD=
> DelegationUID=
> KrbServiceName=
> KrbServiceHost=maprsasl
> krbSpnConfigurationsRequired=1
> I could connect successfully.  I was expecting to get an error message.  If only either KrbServiceHost is missing or both KrbServiceHost and KrbServiceName are missing then I get the expected error message.
> Turning off the parameter, I was able to connect using the following setting:
> AuthenticationType=Kerberos
> UID=
> PWD=
> DelegationUID=
> KrbServiceName=
> KrbServiceHost=maprsasl
> krbSpnConfigurationsRequired=0
> However, if either KrbServiceHost or both KrbServiceHost and KrbServiceName are missing, I would get the following error message:
> 1: SQLDriverConnect = [MapR][Drill] (30)  User authentication failed. Server message: DrillClientImpl::handleAuthentication: Authentication failed. [Details:  Encryption: enabled ,MaxWrappedSize: 32768 ,WrapSizeLimit: 0, Error: -1]. Check connection parameters? (30) SQLSTATE=28000
> 1: ODBC_Connect = [MapR][Drill] (30)  User authentication failed. Server message: DrillClientImpl::handleAuthentication: Authentication failed. [Details:  Encryption: enabled ,MaxWrappedSize: 32768 ,WrapSizeLimit: 0, Error: -1]. Check connection parameters? (30) SQLSTATE=28000
> The Drill C++ Client should set service_host to the connected host (if direct) if service_host is empty (similar logic for zookeeper connection). Going through the source code, looks like this logic was removed by this commit: https://github.com/apache/drill/commit/f246c3cad7f44baeb8153913052ebc963c62276a#diff-8e6df071d8ca863fcfa578892944c1dcL123



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)