The relevant environment is as follows:
Python3.4
Win7 64-bit
Follow the installation steps in 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 (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
Description:. whl file to http://www.lfd.uci.edu/~gohlke/pythonlibs/download the appropriate Python and Windows versions
After installation will be error, such as:
Follow the prompts to locate the appropriate parser.py file for the following modifications:
Done!
Try connecting to your Hadoop.
from Import = connect (host='192.168.1.3', port=21050,timeout=3600)
Python Connection Impala (install Impyla)