Python connects impala (install impyla) and impalaimpyla

Source: Internet
Author: User

Python connects impala (install impyla) and impalaimpyla

The related environment is as follows:

Python3.4

Win7 64-bit

Please refer to the following installation steps on the official website: https://github.com/cloudera/impyla:

1. pip install six

2. pip install bit_array

3. pip install thriftpy

# Thrift (on Python 2.x) or thriftpy (on Python 3.x)

4. pip install sasl-0.2.1-cp34-cp34m-win_amd64.whl (under centos: sudo yum install gcc-c ++ python-devel.x86_64 cyrus-sasl-devel.x86_64 then pip install sasl)

5. pip install thrift_sasl

6. pip install bitarray-0.8.1-cp34-none-win_amd64.whl

7. pip install impyla

(. Whl files to http://www.lfd.uci.edu /~ Gohlke/pythonlibs/download the corresponding python and windows Versions

An error is reported after installation, for example:

Find the corresponding parser. py file as prompted and modify it as follows:

 

Success!

Try connecting your hadoop.

From impala. dbapi import connectconn = connect (host = '192. 168.1.3 ', port = 192, timeout = 21050)

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.