[ 
https://issues.apache.org/jira/browse/IMPALA-10027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Armstrong resolved IMPALA-10027.
------------------------------------
    Fix Version/s: Impala 4.0
       Resolution: Fixed

> Use anonymous user when user is not specified
> ---------------------------------------------
>
>                 Key: IMPALA-10027
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10027
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Frontend, Security
>    Affects Versions: Impala 4.0
>            Reporter: Tamas Mate
>            Priority: Major
>              Labels: ramp-up
>             Fix For: Impala 4.0
>
>
> When Ranger is enabled with no further authentication method configured and 
> no user specified Impala throws IllegalArgumentException (see bellow).
> Meanwhile, Hive JDBC replaces empty user with 'anonymous'. Although, without 
> authentication any user can be impersonated and it is a rare use-case, we 
> should consider substitute empty username for 'anonymous' as well for 
> interoperability.
>  
> {noformat}
> $ impala-shell --protocol='hs2-http' -i <hostname> --user '' -q 'describe 
> tarmstrong.test'
> Starting Impala Shell without Kerberos authentication
> Warning: live_progress only applies to interactive shell sessions, and is 
> being skipped for now.
> Warning: --connect_timeout_ms is currently ignored with HTTP transport.
> Opened TCP connection to 
> coordinator-IBM-Think1.env-hg4zgx.apps.os4demo.cloudera.com:80
> Connected to coordinator-IBM-Think1.env-hg4zgx.apps.os4demo.cloudera.com:80
> Server version: impalad version 4.0.0-SNAPSHOT RELEASE (build 
> e21fdec10f2f90d1ff6dab619d4dcb5626f458a8)
> Query: describe tarmstrong.test
> ERROR: IllegalArgumentException: Null user
> Could not execute command: describe tarmstrong.test
> Traceback (most recent call last):
>   File "/home/tarmstrong/.local/bin/impala-shell", line 11, in <module>
>     sys.exit(impala_shell_main())
>   File 
> "/home/tarmstrong/.local/lib/python2.7/site-packages/impala_shell/impala_shell.py",
>  line 1874, in impala_shell_main
>     raise FatalShellException()
> impala_shell.impala_shell.FatalShellException
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to