mirror of
https://github.com/apache/impala.git
synced 2025-12-22 03:18:15 -05:00
Needed for python 3 compatibility. Note that we had to amend the make_shell_tarball.sh to account for the fact that execfile has been removed from python 3. Tested by running gerrit-verify-dryrun, and also confirmed I can connect to a kerberized host. $ <path_to>/impala-shell-4.0.0-SNAPSHOT/impala-shell -k --ssl -i host.redacted.com Starting Impala Shell with Kerberos authentication using Python 2.7.12 Using service name 'impala' SSL is enabled. Impala server certificates will NOT be verified (set --ca_cert to change) No handlers could be found for logger "thrift.transport.sslcompat" Opened TCP connection to host.redacted.com:21000 Connected to host.redacted.com:21000 Server version: impalad version 3.4.0-SNAPSHOT RELEASE (build d17bc21...) *********************************************************************************** Welcome to the Impala shell. (Impala Shell v4.0.0-SNAPSHOT (7af6a8d) built on Tue May 5 10:39:12 PDT 2020) To see more tips, run the TIP command. *********************************************************************************** [host.redacted.com:21000] default> Change-Id: Ibd02055d33e2da504eccd571f1f209ae2e5b7876 Reviewed-on: http://gerrit.cloudera.org:8080/15859 Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com>
32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
# Copyright 2015 Cloudera Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from setuptools import setup, Extension
|
|
|
|
sasl_module = Extension('sasl.saslwrapper',
|
|
sources=['sasl/saslwrapper.cpp'],
|
|
include_dirs=["sasl"],
|
|
libraries=["sasl2"],
|
|
language="c++")
|
|
setup(name='sasl',
|
|
version='0.2.1',
|
|
url="http://github.com/toddlipcon/python-sasl",
|
|
maintainer="Todd Lipcon",
|
|
maintainer_email="todd@cloudera.com",
|
|
description="""Cyrus-SASL bindings for Python""",
|
|
packages=['sasl'],
|
|
install_requires=['six'],
|
|
ext_modules=[sasl_module],
|
|
include_package_data=True)
|