Skip to content

Commit

Permalink
Merge pull request #12 from normal-cock/develop
Browse files Browse the repository at this point in the history
add 'thriftpy2==0.4.8'  limit
  • Loading branch information
normal-cock authored Mar 31, 2020
2 parents 25437fc + c747d95 commit e041454
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*.egg-info
.eggs
/.coverage
/build
/dist
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,23 @@ This is a patch for happybase to support kerberos when connect to hbase thrift s

The patch now support `python 2.7`, `python 3.5`, `python 3.6`, `python 3.7`.

The project is base on happybase https://github.com/python-happybase/happybase


# requirements

In order to use kerberos, the following packages is required:

1. python3-dev
2. libkrb5-dev
1. python-devel or python3-devel (depend on which you use)
2. krb5-lib5
3. krb-workstation

For example, in redhat install by the follow commands:

```shell
yum install python-devel
yum -y install krb5-libs krb5-workstation
```

For example, in ubuntu install by the follow commands:

Expand All @@ -35,9 +46,14 @@ sudo apt-get install python3-dev
sudo apt-get install libkrb5-dev
```


# Installment

`pip install -U git+https://github.com/normal-cock/happybase-kerberos-patch.git`
In China for higher installation speed could use "-i https://pypi.tuna.tsinghua.edu.cn/simple"

```shell
pip install -U git+https://github.com/littlebear-xbz/happybase-kerberos-patch.git -i https://pypi.tuna.tsinghua.edu.cn/simple
```

This comment has been minimized.

Copy link
@littlebear-xbz

littlebear-xbz Mar 31, 2020

Contributor

Hi, I changed the links, you need change it to yours in the readme


# Usage

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
test_suite='tests',
install_requires=[
'pykerberos',
'thriftpy2==0.4.8',
'pure-sasl==0.6.1',
'happybase==1.2.0',
],
Expand Down

0 comments on commit e041454

Please sign in to comment.