GitHub user prabhjyotsingh opened a pull request:

    https://github.com/apache/zeppelin/pull/1953

    User Impersonation fails on setting hive_conf_list in hive interpreter 
(JDBC)

    ### What is this PR for?
    This is how a sample 
`jdbc:hive2://<host1>:<port1>,<host2>:<port2>/dbName;initFile=<file>;sess_var_list?hive_conf_list#hive_var_list`
 looks like. And when "hive_conf_list" is set then, User Impersonation which is 
passed via "sess_var_list" fails.
    
    Ref: 
https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-ConnectionURLFormat
    
    ### What type of PR is it?
    [Bug Fix]
    
    
    ### What is the Jira issue?
    * [ZEPPELIN-2023](https://issues.apache.org/jira/browse/ZEPPELIN-2023)
    
    ### How should this be tested?
    Try setting tez.queue.name=someQueueName so the JDBC url, like following
    ```
    
jdbc:hive2://sameple-custer-3.novalocal:2181,sameple-custer-2.novalocal:2181,sameple-custer-4.novalocal:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2?tez.queue.name=someQueueName
    ````
     and now execute some query like 
    ```
    select count(*) from table_name
    ```
     and check resource manager UI, this should show up on the designated queue 
with the webUi logged-in user.
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? N/A
    * Is there breaking changes for older versions? N/A
    * Does this needs documentation? N/A


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

    $ git pull https://github.com/prabhjyotsingh/zeppelin ZEPPELIN-2023

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

    https://github.com/apache/zeppelin/pull/1953.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 #1953
    
----
commit fa8df9e631551dacbfe8bf8c02415216e4979b67
Author: Prabhjyot Singh <prabhjyotsi...@gmail.com>
Date:   2017-01-27T08:47:21Z

    add proxy.user=user before "?"

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to