You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ``pip install 'pyhive[hive]'`` for the Hive interface and
124
-
- ``pip install 'pyhive[presto]'`` for the Presto interface.
139
+
- ``pip install 'pyhive[hive]'`` or ``pip install 'pyhive[hive_pure_sasl]'`` for the Hive interface
140
+
- ``pip install 'pyhive[presto]'`` for the Presto interface
125
141
- ``pip install 'pyhive[trino]'`` for the Trino interface
126
142
143
+
Note: ``'pyhive[hive]'`` extras uses `sasl <https://pypi.org/project/sasl/>`_ that doesn't support Python 3.11, See `github issue <https://github.com/cloudera/python-sasl/issues/30>`_.
144
+
Hence PyHive also supports `pure-sasl <https://pypi.org/project/pure-sasl/>`_ via additional extras ``'pyhive[hive_pure_sasl]'`` which support Python 3.11.
145
+
127
146
PyHive works with
128
147
129
148
- Python 2.7 / Python 3
130
-
- For Presto: Presto install
131
-
- For Trino: Trino install
149
+
- For Presto: `Presto installation <https://prestodb.io/docs/current/installation.html>`_
150
+
- For Trino: `Trino installation <https://trino.io/docs/current/installation.html>`_
132
151
- For Hive: `HiveServer2 <https://cwiki.apache.org/confluence/display/Hive/Setting+up+HiveServer2>`_ daemon
133
152
134
153
Changelog
135
-
=========
154
+
*********
136
155
See https://github.com/dropbox/PyHive/releases.
137
156
138
157
Contributing
139
-
============
158
+
************
140
159
- Please fill out the Dropbox Contributor License Agreement at https://opensource.dropbox.com/cla/ and note this in your pull request.
141
160
- Changes must come with tests, with the exception of trivial things like fixing comments. See .travis.yml for the test environment setup.
142
161
- Notes on project scope:
@@ -146,8 +165,28 @@ Contributing
146
165
- We prefer having a small number of generic features over a large number of specialized, inflexible features.
147
166
For example, the Presto code takes an arbitrary ``requests_session`` argument for customizing HTTP calls, as opposed to having a separate parameter/branch for each ``requests`` option.
148
167
168
+
Tips for test environment setup
169
+
****************************************
170
+
You can setup test environment by following ``.travis.yaml`` in this repository. It uses `Cloudera's CDH 5 <https://docs.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh_download_510.html>`_ which requires username and password for download.
171
+
It may not be feasible for everyone to get those credentials. Hence below are alternative instructions to setup test environment.
172
+
173
+
You can clone `this repository <https://github.com/big-data-europe/docker-hive/blob/master/docker-compose.yml>`_ which has Docker Compose setup for Presto and Hive.
174
+
You can add below lines to its docker-compose.yaml to start Trino in same environment::
175
+
176
+
trino:
177
+
image: trinodb/trino:351
178
+
ports:
179
+
- "18080:18080"
180
+
volumes:
181
+
- ./trino:/etc/trino
182
+
183
+
Note: ``./trino`` for docker volume defined above is `trino config from PyHive repository <https://github.com/dropbox/PyHive/tree/master/scripts/travis-conf/trino>`_
0 commit comments