Skip to content

prodeezy/python-hiveserver2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-hiveserver2

Python thrift binding for HiveServer2 and simple query example.

The binding files are compiled based on CDH4.2.1 & Thrift 0.9.

##Usage

git clone https://github.com/lanyuyang/python-hiveserver2.git
cd python-hiveserver2

# 1) install python-sasl
cd ext-py/sasl-0.1.1
python setup.py install
#or
sudo python setup.py install

# if you got build error, try to install the following Linux packages & try again
# libsasl2-2, libsasl2-dev, python-dev

# 2) install python-hs2
cd ../../
python setup.py install
#or
sudo python setup.py install

# 3) try querying using example.py
# config your hiveserver information in example/example.py
vim example/example.py
# fill username, password, host, port, test_hql, etc.

# then check it out
python example/example.py

About

Python binding for HiveServer2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published