[
https://issues.apache.org/jira/browse/PHOENIX-5938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128288#comment-17128288
]
Istvan Toth commented on PHOENIX-5938:
--------------------------------------
I've added some tests (and fixed some bugs that surfaced).
I've tested w/Hue as well:
* Install patched driver to Hue python env
*
{noformat}
[notebook]
[[interpreters]]
[[[phoenix]]]
name = phoenix
interface=sqlalchemy
options='{"url": "phoenix://phoenix.server.address:8765", "tls": true,
"connect_args": {"authentication": "SPNEGO", "verify": false },
"has_impersonation": true}'*{noformat}
* logged in as "admin" to Hue
* Got errors, because _admin_ doesn't have the necessary permissions to
initialize Phoenix system tables
*
{noformat}
grant 'admin','RXWCA'{noformat}
* Phoenix now created its tables, and Hue loaded the tables, etc.
* RemovedĀ *has_impersonation": true from* Hue and restarted
* Got permission error, because now the effective user is _hue_, which doesn't
have necessary HBase permissions.
> Support impersonation in the python driver
> ------------------------------------------
>
> Key: PHOENIX-5938
> URL: https://issues.apache.org/jira/browse/PHOENIX-5938
> Project: Phoenix
> Issue Type: New Feature
> Components: queryserver
> Affects Versions: queryserver-1.0.0
> Reporter: Romain Rigaux
> Assignee: Istvan Toth
> Priority: Major
>
> Support impersonation via the doAs parameter in the python driver, and the
> SqlAlchemy driver.
> For the SqlAlchemy driver, strive to make it compatible with the Hue
> _has_impersonation_ option.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)