You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Joe McDonnell (Jira)" <ji...@apache.org> on 2023/06/16 06:01:00 UTC

[jira] [Commented] (IMPALA-12220) impala-shell tarball's sasl dependency does not work on Redhat 9 / Ubuntu 22

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

Joe McDonnell commented on IMPALA-12220:
----------------------------------------

Repro steps:
{noformat}
docker run -it --entrypoint bash ubuntu:22.04

# In Docker:
apt-get update
apt-get install -y g++ gcc git libsasl2-dev libssl-dev make python3-dev \ 
  python3-setuptools python3-six python3-venv libffi-dev libkrb5-dev krb5-admin-server \
  krb5-kdc krb5-user libxml2-dev libxslt-dev
git clone https://github.com/cloudera/python-sasl.git
cd python-sasl
python3 setup.py bdist_egg clean
cd dist
PYTHONPATH=sasl-0.3.1-py3.10-linux-x86_64.egg python3
# In python prompt:
import sasl
sasl.Client
# Hits this error:
# AttributeError: module 'sasl' has no attribute 'Client'{noformat}

> impala-shell tarball's sasl dependency does not work on Redhat 9 / Ubuntu 22
> ----------------------------------------------------------------------------
>
>                 Key: IMPALA-12220
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12220
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: Impala 4.3.0
>            Reporter: Joe McDonnell
>            Priority: Blocker
>
> When building on Redhat 9, the impala-shell from the shell tarball does not work with SASL. When trying to connect using SASL, it fails with this:
> {noformat}
> Error connecting: AttributeError, module 'sasl' has no attribute 'Client'{noformat}
> This shows up for shell tests when using --strict_hs2_protocol to connect to Hive. However, it is not specific to Hive. Modifying LdapImpalaShellTest.java to use the impala-shell from the tarball yields the same error.
> Oddly enough, the pip installed impala-shell does not show this problem at all (nor does bin/impala-shell.sh).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org